Skip to content

Commit 3b497e6

Browse files
committed
feat: Remove GitHub token ARG and CodeQL extension installation from Dockerfile
1 parent 8d25803 commit 3b497e6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,4 @@ RUN apt-get update && \
3131
apt-get clean && \
3232
rm -rf /var/lib/apt/lists/*
3333

34-
# Define GitHub token as a build ARG
35-
ARG github_token
36-
37-
# Install the CodeQL extension for GitHub CLI
38-
RUN --mount=type=secret,id=github_token \
39-
gh extensions install github/gh-codeql && \
40-
gh codeql install-stub
41-
4234
ENTRYPOINT [ "codeql-extractor-action" ]

action.Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
FROM ghcr.io/advanced-security/codeql-extractor-action:v0.1.1
1+
FROM ghcr.io/advanced-security/codeql-extractor-action:v0.1.0
2+
3+
ARG INPUT_TOKEN
4+
5+
RUN export GH_TOKEN=$INPUT_TOKEN && \
6+
gh extensions install github/gh-codeql
27

38
ENTRYPOINT [ "codeql-extractor-action" ]

0 commit comments

Comments
 (0)