Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query pack actions-security-and-quality cannot be found #2658

Open
dpogue opened this issue Dec 18, 2024 · 1 comment
Open

Query pack actions-security-and-quality cannot be found #2658

dpogue opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dpogue
Copy link

dpogue commented Dec 18, 2024

As announced yesterday here: https://github.blog/changelog/2024-12-17-find-and-fix-actions-workflows-vulnerabilities-with-codeql-public-preview/

I've updated a workflow in one of my repositories to include actions in the codeql init step:

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1dadcb7..e541f11 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,7 +34,7 @@ jobs:
       - name: Initialize CodeQL
         uses: github/codeql-action/init@v3
         with:
-          languages: javascript
+          languages: javascript, actions
           queries: security-and-quality

The run fails with an error:

A fatal error occurred: Query pack actions-security-and-quality cannot be found. Check the spelling of the pack.

Error: Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.20.0/x64/codeql/codeql database init --force-overwrite --db-cluster /home/runner/work/_temp/codeql_databases --source-root=/home/runner/work/reponame/reponame --extractor-include-aliases --language=javascript --language=actions --search-path /home/runner/work/_actions/github/codeql-action/v3/actions-extractor --codescanning-config=/home/runner/work/_temp/user-config.yaml --calculate-language-specific-baseline --sublanguage-file-coverage". Exit code was 2 and error was: A fatal error occurred: Query pack actions-security-and-quality cannot be found. Check the spelling of the pack. See the logs for more details.

@aeisenberg aeisenberg added the bug Something isn't working label Dec 18, 2024
@aeisenberg
Copy link
Contributor

Thanks for calling this out. We'll be addressing this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants