Skip to content

ci: Fix Workflow does not contain permissions - #59

Merged
bircni merged 1 commit into
mainfrom
alert-autofix-11
Aug 24, 2026
Merged

ci: Fix Workflow does not contain permissions#59
bircni merged 1 commit into
mainfrom
alert-autofix-11

Conversation

@bircni

@bircni bircni commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/bircni/git-statuses/security/code-scanning/11

Add explicit permissions in .github/workflows/deploy.yml:

  1. Set a workflow-level default to least privilege:
    • contents: read
  2. For the deploy job only, override with:
    • contents: write (required to create a release)

This preserves functionality (build/download/upload artifacts and release publishing) while minimizing token scope for the other jobs.

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

…ontain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@bircni bircni changed the title Potential fix for code scanning alert no. 11: Workflow does not contain permissions ci: Fix Workflow does not contain permissions Aug 23, 2026
@bircni
bircni marked this pull request as ready for review August 24, 2026 17:33
@bircni
bircni merged commit 7a01fd8 into main Aug 24, 2026
9 checks passed
@bircni
bircni deleted the alert-autofix-11 branch August 24, 2026 17:33
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