Skip to content

fix(ci): add explicit permissions to lint.yml - #103

Merged
jimisola merged 1 commit into
mainfrom
fix/codeql-workflow-permissions
Aug 23, 2026
Merged

fix(ci): add explicit permissions to lint.yml#103
jimisola merged 1 commit into
mainfrom
fix/codeql-workflow-permissions

Conversation

@jimisola

Copy link
Copy Markdown
Member

Fixes the open CodeQL alert (actions/missing-workflow-permissions) on this file: no permissions: block anywhere, so it ran with the repo's default token permissions rather than what it actually needs. It only checks out and reads the repo — contents: read covers it.

Checklist

  • I have reviewed and followed the contributing guidelines.
  • I have run a local build and made sure all tests pass.
  • I have signed off the DCO (git commit -s).
  • I have read the Code of Conduct and agree to abide by it.

Test plan

YAML validated locally. CodeQL re-scan on this PR should close the alert.

CodeQL flagged lint.yml (actions/missing-workflow-permissions): no
permissions block anywhere in the file, so it runs with whatever the
repo's default token permissions are rather than what it actually
needs. It only checks out and reads the repo -- contents: read covers
everything the job does.

Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
@jimisola
jimisola merged commit be3cdf6 into main Aug 23, 2026
10 checks passed
@jimisola
jimisola deleted the fix/codeql-workflow-permissions branch August 23, 2026 12:57
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