Skip to content

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#26

Merged
Zefek merged 1 commit into
mainfrom
alert-autofix-2
Jun 1, 2026
Merged

Potential fix for code scanning alert no. 2: Workflow does not contain permissions#26
Zefek merged 1 commit into
mainfrom
alert-autofix-2

Conversation

@Zefek
Copy link
Copy Markdown
Owner

@Zefek Zefek commented Jun 1, 2026

Potential fix for https://github.com/Zefek/Odecty/security/code-scanning/2

Add an explicit permissions block to .github/workflows/build.yml at the workflow root (recommended here since there is only one job).
For this workflow, the minimal required permission is:

  • contents: read (needed by actions/checkout)

No additional token scopes are required for upload-artifact (artifact upload uses the Actions service and does not require repository write scope).
Place the block between on: and jobs: so it applies to all jobs unless overridden.

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>
@Zefek Zefek marked this pull request as ready for review June 1, 2026 18:30
@Zefek Zefek merged commit f6657cc into main Jun 1, 2026
4 checks passed
@Zefek Zefek deleted the alert-autofix-2 branch June 1, 2026 18:35
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