Skip to content

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#4

Merged
earlution merged 1 commit into
mainfrom
alert-autofix-5
May 22, 2026
Merged

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#4
earlution merged 1 commit into
mainfrom
alert-autofix-5

Conversation

@earlution

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/earlution/6-axis-compass/security/code-scanning/5

Add an explicit permissions block to the workflow so the GITHUB_TOKEN is least-privilege by default.
Best fix without changing behavior: set workflow-level permissions to read-only contents, which satisfies actions/checkout and typical read operations:

  • File: .github/workflows/osf-upload.yml
  • Region: after on: block (before jobs:)
  • Add:
    • permissions:
    • contents: read

No imports/dependencies/methods are needed (YAML config only).

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>
@earlution earlution marked this pull request as ready for review May 22, 2026 13:58
@earlution earlution merged commit d46b642 into main May 22, 2026
5 checks passed
@earlution earlution deleted the alert-autofix-5 branch May 22, 2026 13:58
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.

1 participant