Skip to content

Fix Security Vulnerability Scan workflow permissions#5

Merged
pangerlkr merged 2 commits intomainfrom
copilot/fix-security-scan-error
Feb 2, 2026
Merged

Fix Security Vulnerability Scan workflow permissions#5
pangerlkr merged 2 commits intomainfrom
copilot/fix-security-scan-error

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

The Security Vulnerability Scan workflow was failing when attempting to upload Trivy SARIF results to GitHub Security with "Resource not accessible by integration" error.

Changes

Added required permissions to the security-scan job in .github/workflows/ci.yml:

security-scan:
  name: Security Vulnerability Scan
  runs-on: ubuntu-latest
  permissions:
    security-events: write  # Required for SARIF upload
    contents: read          # Required for checkout

The github/codeql-action/upload-sarif@v3 action requires explicit security-events: write permission to access CodeQL Action API endpoints and upload scan results to the Security tab.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Added security-events: write and contents: read permissions to the security-scan job to allow uploading SARIF results to GitHub Security tab.

Co-authored-by: pangerlkr <73515951+pangerlkr@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error in Security Vulnerability Scan workflow Fix Security Vulnerability Scan workflow permissions Feb 2, 2026
Copilot AI requested a review from pangerlkr February 2, 2026 05:04
@pangerlkr pangerlkr marked this pull request as ready for review February 2, 2026 05:05
@coderabbitai
Copy link

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

@pangerlkr pangerlkr merged commit 9523125 into main Feb 2, 2026
7 of 8 checks passed
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