Skip to content

Commit 7da10e4

Browse files
authored
Update CodeQL.dockerfile
1 parent 6984a11 commit 7da10e4

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

CodeQL.dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ ENV DEBIAN_FRONTEND=noninteractive
1414
ENV NODE_VERSION=24.0.2
1515
ENV DOTNET_VERSION=9.0
1616

17-
# Install codeql
17+
# Install requirements
18+
# https://codeql.github.com/docs/codeql-overview/system-requirements
1819

1920
RUN apt-get update && \
2021
apt-get install -y --no-install-recommends apt-utils \
@@ -26,15 +27,20 @@ RUN apt-get update && \
2627
unzip gnupg g++ \
2728
make gcc \
2829
golang \
30+
ruby-full \
2931
default-jdk \
3032
python3-pip python3-setuptools python3-wheel \
3133
python3-venv
32-
3334
# Create Python virtual environment
3435

3536
RUN python3 -m venv /opt/venv
3637
ENV PATH="/opt/venv/bin:$PATH"
3738

39+
# Install rust
40+
41+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
42+
ENV PATH="/root/.cargo/bin:$PATH"
43+
3844
# Get the latest version of the codeql-cli
3945

4046
WORKDIR /tmp
@@ -48,18 +54,15 @@ RUN curl -s https://api.github.com/repos/github/codeql-cli-binaries/releases/lat
4854
RUN mv codeql* /opt/codeql/
4955
ENV PATH="/opt/codeql:${PATH}"
5056

51-
# Copy rules repository
52-
53-
# WORKDIR /opt/codeql
54-
# RUN git clone --depth 1 --branch main https://github.com/github/codeql codeql-repo
55-
5657
# https://github.com/orgs/codeql/packages
5758

5859
# Download CodeQL packs
5960

6061
RUN codeql pack download \
6162
codeql/rust-all \
6263
codeql/rust-queries \
64+
codeql/actions-all \
65+
codeql/actions-queries \
6366
codeql/go-all \
6467
codeql/go-queries \
6568
codeql/cpp-all \
@@ -84,9 +87,8 @@ RUN codeql version && \
8487

8588
RUN add-apt-repository ppa:dotnet/backports && \
8689
apt-get update && \
87-
apt-get install -y --no-install-recommends dotnet-sdk-$DOTNET_VERSION
88-
89-
RUN dotnet --version
90+
apt-get install -y --no-install-recommends dotnet-sdk-$DOTNET_VERSION && \
91+
dotnet --version
9092

9193
# Install NVM and Node.js
9294

0 commit comments

Comments
 (0)