Skip to content

Commit 61cd3ac

Browse files
authored
Add workflow permissions to YAML lint workflow (#39)
Declare explicit contents: read on the file-consistency GitHub Actions workflow so GITHUB_TOKEN uses least privilege and satisfies CodeQL rule actions/missing-workflow-permissions. Resolves the public code scanning alert for missing workflow permissions metadata (alert #1) in this repository. AI-Assistance: Cursor IDE, Agent mode, Composer model. Collaboration: standard human/AI workflow; human review and approval before commit. Security: addresses GitHub CodeQL finding on CI workflow permissions; no production secrets or credentials involved. Made-with: Cursor
1 parent 1fa55de commit 61cd3ac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: file-consistency
3+
permissions:
4+
contents: read
35
on: # yamllint disable-line rule:truthy
46
pull_request:
57
branches:

0 commit comments

Comments
 (0)