Skip to content

Commit

Permalink
Fix not using cli version for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nealfennimore committed Oct 28, 2021
1 parent 24ac555 commit aa4a82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ RUN wget -q -O /tmp/codeql-linux64.zip https://github.com/github/codeql-cli-bina
&& rm /tmp/codeql-linux64.zip

# Clone codeql repo
RUN git clone https://github.com/github/codeql.git $HOME/codeql-repo \
RUN git clone -b codeql-cli/v$CLI_VERSION https://github.com/github/codeql.git $HOME/codeql-repo \
&& cd $HOME/codeql-repo \
&& git submodule update --init --remote

# Clone codeql-go repo
RUN if [ "$CODE_LANGUAGE" = "go" ]; then git clone https://github.com/github/codeql-go.git $HOME/codeql-go; fi
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

ENV PATH="/home/cli/codeql:/usr/local/go/bin:${PATH}"

Expand Down

0 comments on commit aa4a82e

Please sign in to comment.