Skip to content

Fix release workflow: use setup-codeql-environment for CLI availability#36

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/fix-github-actions-workflow-again
Closed

Fix release workflow: use setup-codeql-environment for CLI availability#36
Copilot wants to merge 2 commits intomainfrom
copilot/fix-github-actions-workflow-again

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

The release workflow failed at the "Publish CodeQL tool query packs" step with codeql: command not found (exit code 127). The github/codeql-action/init@v3 action initializes CodeQL for code scanning but doesn't expose the CLI to subsequent steps.

Changes

  • .github/workflows/release.yml: Replace github/codeql-action/init@v3 with .github/actions/setup-codeql-environment
    • Installs CodeQL CLI via gh-codeql extension and adds to PATH
    • Configured with add-to-path: true and install-language-runtimes: false
    • Aligns with existing workflows (query-unit-tests.yml, client-integration-tests.yml)
-      - name: Release - Initialize CodeQL
-        uses: github/codeql-action/init@v3
+      - name: Release - Setup CodeQL environment
+        uses: ./.github/actions/setup-codeql-environment
         with:
-          languages: javascript-typescript
-          tools: latest
+          add-to-path: true
+          install-language-runtimes: false

The codeql pack publish command in the subsequent step now has CLI access.

Original prompt

Fix the failing GitHub Actions workflow Build and Release
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63021953936
Job URL: https://github.com/advanced-security/codeql-development-mcp-server/actions/runs/21840145542/job/63021953936


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for Build and Release Fix release workflow: use setup-codeql-environment for CLI availability Feb 9, 2026
Copilot AI requested a review from data-douser February 9, 2026 21:08
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/release.yml

@data-douser data-douser marked this pull request as ready for review February 9, 2026 21:45
@data-douser data-douser requested review from a team and enyil as code owners February 9, 2026 21:45
Copilot AI review requested due to automatic review settings February 9, 2026 21:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release workflow to ensure the CodeQL CLI is available during the release job, fixing the failure in the “Publish CodeQL tool query packs” step (codeql: command not found).

Changes:

  • Replaces github/codeql-action/init@v3 with the repo’s composite action ./.github/actions/setup-codeql-environment.
  • Configures the setup action to add codeql to PATH while skipping language runtime installation for faster execution.

@data-douser
Copy link
Collaborator

Superseded by #37

@data-douser data-douser closed this Feb 9, 2026
@data-douser data-douser deleted the copilot/fix-github-actions-workflow-again branch February 11, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants