Open
Description
We're trying to reference a private CodeQL pack when running init
. When this runs in Github actions, we get HttpError: Not Found
.
name: "SAST Scans"
on:
push:
branches: ["master", "main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["master", "main"]
schedule:
- cron: "0 */12 * * *"
jobs:
codeql-analysis:
name: code-scanning
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["python", "javascript"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
packs: companyname/python-queries
token: ${{ secrets.CUSTOM_CODEQL_SCAN_GITHUB_TOKEN }}
debug: true
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
- I've verified that we can download the pack by using
codeql package download companyname/python-queries --github-auth-stdin
and supply the value ofsecrets.CUSTOM_CODEQL_SCAN_GITHUB_TOKEN
. - I've verified that
CUSTOM_CODEQL_SCAN_GITHUB_TOKEN
exists as an organization secret. - I've verified that this repo has access to the published package in the organization settings.
- I've verified that the codeql scan runs fine when I remove the custom package reference.
Is there anything I'm missing or is there a bug with the init
script? I'm having trouble finding any documentation around referencing private packs for CodeQL Github actions.
Thank you.
Metadata
Metadata
Assignees
Labels
No labels