Skip to content

Commit d326d65

Browse files
authored
Merge branch 'main' into scovetta-readme-fixes
2 parents 156ea57 + 98f0051 commit d326d65

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ ENV CODEQL_HOME /usr/local/codeql-home
5555
# record the latest version of the codeql-cli
5656
RUN python3 /usr/local/startup_scripts/get-latest-codeql-version.py > /tmp/codeql_version
5757
RUN mkdir -p ${CODEQL_HOME} \
58-
${CODEQL_HOME}/codeql-repo \
59-
${CODEQL_HOME}/codeql-go-repo \
60-
/opt/codeql
58+
${CODEQL_HOME}/codeql-repo \
59+
${CODEQL_HOME}/codeql-go-repo \
60+
/opt/codeql
6161

6262
RUN CODEQL_VERSION=$(cat /tmp/codeql_version) && \
6363
wget -q https://github.com/github/codeql-cli-binaries/releases/download/${CODEQL_VERSION}/codeql-linux64.zip -O /tmp/codeql_linux.zip && \
@@ -75,4 +75,4 @@ ENV PATH="${CODEQL_HOME}/codeql:${PATH}"
7575
# Pre-compile our queries to save time later
7676
#RUN codeql query compile --threads=0 ${CODEQL_HOME}/codelq-repo/*/ql/src/codeql-suites/*-.qls
7777
#RUN codeql query compile --threads=0 ${CODEQL_HOME}/codelq-go-repo/ql/src/codeql-suites/*-.qls
78-
ENTRYPOINT ["python3", "/usr/local/startup_scripts/startup.py"]
78+
ENTRYPOINT ["python3", "/usr/local/startup_scripts/startup.py"]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
> Current version of CodeQL only works for interpreted languages. We will add compiled languages support on future versions.
55
66
CodeQL Container is a project aimed at making it easier to start using CodeQL (https://github.com/github/codeql). This project
7-
contains a Docker file which builds a container with the latest version of codeql-cli and codeql queries precompiled.
7+
contains a Docker file which builds a container, with the latest version of codeql-cli and codeql queries precompiled.
88
It also contains scripts to keep the toolchain in the container updated. You can use this container to:
99

1010
* Start using codeql-cli and run queries on your projects without installing it on your local machine.
@@ -18,17 +18,18 @@ We shall continue to add more features and would be happy to accept contribution
1818
#### Downloading a pre-built container
1919

2020
We keep updating the docker image periodically and uploading it to the Microsoft Container Registry at: mcr.microsoft.com/codeql/codeql-container.
21-
You can run the image by running the command:
2221

22+
You can pull the image by running the command:
2323
```
24-
$ docker run --rm mcr.microsoft.com/codeql/codeql-container
24+
$ docker pull mcr.microsoft.com/codeql/codeql-container
2525
```
2626

2727
If you want to analyze a particular source directory with codeql, run the container as:
2828

2929
```
3030
$ docker run --rm --name codeql-container mcr.microsoft.com/codeql/codeql-container -v /dir/to/analyze:/opt/src -v /dir/for/results:/opt/results -e CODEQL_CLI_ARGS=<query run...>
3131
```
32+
3233
where `/dir/to/analyze` contains the source files that have to be analyzed, and `/dir/for/results` is where the result output
3334
needs to be stored, and you can specify QL_PACKS environment variable for specific QL packs to be run on the provided code.
3435
For more information on CodeQL and QL packs, please visit https://www.github.com/github/codeql.
@@ -62,7 +63,7 @@ $ docker run --rm --name codeql-container mcr.microsoft.com/codeql/codeql-contai
6263
$ docker run --rm --name codeql-container mcr.microsoft.com/codeql/codeql-container -v /dir/to/analyze:/opt/src -v /dir/for/results:/opt/results -e CODEQL_CLI_ARGS="database analyze --format=sarifv2 --output=/opt/results/issues.sarif /opt/src/source_db
6364
```
6465

65-
This command will run all the QL packs related to security and output the results to the results folder.
66+
For more information on CodeQL and QL packs, please visit https://www.github.com/github/codeql.
6667

6768
#### Building the container
6869

0 commit comments

Comments
 (0)