Skip to content

fix: add workflow permissions#864

Merged
oetr merged 1 commit intomainfrom
alert-autofix-12
Mar 26, 2026
Merged

fix: add workflow permissions#864
oetr merged 1 commit intomainfrom
alert-autofix-12

Conversation

@oetr
Copy link
Contributor

@oetr oetr commented Mar 26, 2026

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@oetr oetr marked this pull request as ready for review March 26, 2026 14:37
Copilot AI review requested due to automatic review settings March 26, 2026 14:37
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

Adds explicit least-privilege GITHUB_TOKEN permissions to the main-branch test workflow to address code scanning alert #12 (“Workflow does not contain permissions”) by granting only contents: read.

Changes:

  • Define a top-level permissions: block in the workflow.
  • Set contents: read as the minimal required permission for checkout + local build/test steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@oetr oetr changed the title Potential fix for code scanning alert no. 12: Workflow does not contain permissions fix: add workflow permissions Mar 26, 2026
@oetr oetr merged commit c718e7a into main Mar 26, 2026
18 checks passed
@oetr oetr deleted the alert-autofix-12 branch March 26, 2026 15:22
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