Skip to content

Commit

Permalink
Update with golang merged into codeql repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nealfennimore committed Jul 21, 2022
1 parent 40ff3d6 commit 5ca21df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,10 @@ 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 -b codeql-cli/v$CLI_VERSION https://github.com/github/codeql.git $HOME/codeql-repo \
RUN git clone -b codeql-cli/v$CLI_VERSION --single-branch 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 -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}"

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

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
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

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

0 comments on commit 5ca21df

Please sign in to comment.