Skip to content

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

Merged
htomasz merged 1 commit into
mainfrom
alert-autofix-26
Jun 21, 2026
Merged

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

Conversation

@htomasz

@htomasz htomasz commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/htomasz/vultron/security/code-scanning/26

Add an explicit permissions block to .github/workflows/gitleaks.yml at the workflow root level (right after on is a clean location). For this workflow, the minimal required permission is contents: read since it checks out code and scans it; no write scope is needed.

This preserves existing functionality while enforcing least privilege for GITHUB_TOKEN across jobs in this workflow (currently just gitleaks).

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

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@htomasz
htomasz marked this pull request as ready for review June 21, 2026 17:05
@htomasz
htomasz merged commit 7eda7e5 into main Jun 21, 2026
15 checks passed
@htomasz
htomasz deleted the alert-autofix-26 branch June 28, 2026 10:18
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