Skip to content

Commit ddc5be4

Browse files
committed
add CodeQL
1 parent 02b5ae7 commit ddc5be4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.devcontainer/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ ENV RUSTUP_HOME=/home/vscode/.rustup
158158
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
159159
ENV PATH="${CARGO_HOME}/bin:${PATH}"
160160

161+
#
162+
# Install CodeQL CLI
163+
RUN cd /opt \
164+
&& wget https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.19.2/codeql-bundle-linux64.tar.gz \
165+
&& tar xf codeql-bundle-linux64.tar.gz \
166+
&& rm codeql-bundle-linux64.tar.gz
167+
ENV PATH="/opt/codeql:${PATH}"
168+
161169
# set path
162170
ENV PATH="/home/vscode/.opam/default/bin:/opt/bazelisk:/usr/lib/llvm-${LLVM_VER}/bin:${PATH}"
163171
# clean

.devcontainer/devcontainer.json

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
// Add the IDs of extensions you want installed when the container is created.
3131
"extensions": [
3232
"esbenp.prettier-vscode",
33+
"GitHub.vscode-codeql",
34+
"GitHub.vscode-pull-request-github",
3335
"ms-python.debugpy",
3436
"ms-python.python",
3537
"ms-python.black-formatter",

0 commit comments

Comments
 (0)