Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#3

Merged
halbothpa merged 1 commit into
alert-autofix-3from
alert-autofix-1
May 19, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#3
halbothpa merged 1 commit into
alert-autofix-3from
alert-autofix-1

Conversation

@halbothpa
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/halbothpa/flipper-dev-toolkit/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege defaults.
Best fix (without changing functionality): define:

permissions:
  contents: read

Place this near the top of the workflow (after name and before on), which applies to validate, lint-python, and docs-validate jobs unless overridden. No new imports, methods, or dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@halbothpa halbothpa changed the base branch from main to alert-autofix-3 May 19, 2026 23:11
@halbothpa halbothpa marked this pull request as ready for review May 19, 2026 23:11
Copilot AI review requested due to automatic review settings May 19, 2026 23:11
Copy link
Copy Markdown
Contributor

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 a least-privilege top-level permissions block to the CI workflow to address a code scanning alert about missing workflow permissions.

Changes:

  • Added permissions: contents: read at the top of .github/workflows/ci.yml.

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

@halbothpa halbothpa merged commit 431d397 into alert-autofix-3 May 19, 2026
11 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