Skip to content

Commit 8d25803

Browse files
committed
feat: Simplify CodeQL extension installation in Dockerfile
1 parent ea9fae5 commit 8d25803

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,7 @@ ARG github_token
3636

3737
# Install the CodeQL extension for GitHub CLI
3838
RUN --mount=type=secret,id=github_token \
39-
if [ -f "/run/secrets/github_token" ]; then \
40-
export GITHUB_TOKEN=$(cat /run/secrets/github_token); \
41-
gh auth setup-git; \
42-
gh extensions install github/gh-codeql && \
43-
gh codeql install-stub; \
44-
else \
45-
echo "No GitHub token provided, using public access"; \
46-
gh extensions install github/gh-codeql && \
47-
gh codeql install-stub; \
48-
fi
39+
gh extensions install github/gh-codeql && \
40+
gh codeql install-stub
4941

5042
ENTRYPOINT [ "codeql-extractor-action" ]

0 commit comments

Comments
 (0)