Skip to content

Commit 983c3db

Browse files
authored
Clone repositories with --depth 1 (#24)
1 parent 252d186 commit 983c3db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ RUN mkdir -p ${CODEQL_HOME} \
6363
/opt/codeql
6464

6565
# get the latest codeql queries and record the HEAD
66-
RUN git clone https://github.com/github/codeql ${CODEQL_HOME}/codeql-repo && \
66+
RUN git clone --depth 1 https://github.com/github/codeql ${CODEQL_HOME}/codeql-repo && \
6767
git --git-dir ${CODEQL_HOME}/codeql-repo/.git log --pretty=reference -1 > /opt/codeql/codeql-repo-last-commit
68-
RUN git clone https://github.com/github/codeql-go ${CODEQL_HOME}/codeql-go-repo && \
68+
RUN git clone --depth 1 https://github.com/github/codeql-go ${CODEQL_HOME}/codeql-go-repo && \
6969
git --git-dir ${CODEQL_HOME}/codeql-go-repo/.git log --pretty=reference -1 > /opt/codeql/codeql-go-repo-last-commit
7070

7171
RUN CODEQL_VERSION=$(cat /tmp/codeql_version) && \

0 commit comments

Comments
 (0)