Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jul 10, 2025

The CodeQL Analysis workflow was missing the required security-events: write permission needed for the github/codeql-action/analyze action to upload security findings to GitHub's security dashboard.

This change adds the permission at the job level (rather than root level) following security best practices:

jobs:
  CodeQL-Build:
    runs-on: ubuntu-latest
    permissions:
      security-events: write
    steps:
      # ... existing steps

The permission is scoped specifically to the job that needs it, ensuring minimal privilege escalation while enabling proper CodeQL analysis functionality.

Fixes #14.


💡 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.

Co-authored-by: trask <218610+trask@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Ensure correct CodeQL workflow permissions Add security-events write permission to CodeQL workflow job Jul 10, 2025
@Copilot Copilot AI requested a review from trask July 10, 2025 00:31
Copilot finished work on behalf of trask July 10, 2025 00:31
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.

Ensure correct CodeQL workflow permissions
2 participants