Skip to content

Commit 5ca21df

Browse files
committed
Update with golang merged into codeql repo
1 parent 40ff3d6 commit 5ca21df

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,10 @@ RUN wget -q -O /tmp/codeql-linux64.zip https://github.com/github/codeql-cli-bina
5454
&& rm /tmp/codeql-linux64.zip
5555

5656
# Clone codeql repo
57-
RUN git clone -b codeql-cli/v$CLI_VERSION https://github.com/github/codeql.git $HOME/codeql-repo \
57+
RUN git clone -b codeql-cli/v$CLI_VERSION --single-branch https://github.com/github/codeql.git $HOME/codeql-repo \
5858
&& cd $HOME/codeql-repo \
5959
&& git submodule update --init --remote
6060

61-
# Clone codeql-go repo
62-
RUN if [ "$CODE_LANGUAGE" = "go" ]; then git clone -b codeql-cli/v$CLI_VERSION https://github.com/github/codeql-go.git $HOME/codeql-go; fi
63-
6461
ENV PATH="/home/cli/codeql:/usr/local/go/bin:${PATH}"
6562

6663
# Ensure languages resolve
@@ -72,6 +69,5 @@ FROM source as compiled
7269
WORKDIR /home/cli/codeql
7370

7471
RUN if [ -d "$HOME/codeql-repo/$CODE_LANGUAGE" ]; then codeql query compile --threads=0 $HOME/codeql-repo/$CODE_LANGUAGE/ql/src/codeql-suites/*.qls; fi
75-
RUN if [ "$CODE_LANGUAGE" = "go" ]; then bash $HOME/codeql-go/scripts/install-deps.sh && codeql query compile --threads=0 $HOME/codeql-go/ql/src/codeql-suites/*.qls; fi
7672

7773
CMD ["codeql", "--help"]

0 commit comments

Comments
 (0)