Skip to content

Add explicit permissions to workflows missing them#2449

Merged
olaservo merged 1 commit into
mainfrom
den/fix-codeql-19-workflow-permissions
Mar 24, 2026
Merged

Add explicit permissions to workflows missing them#2449
olaservo merged 1 commit into
mainfrom
den/fix-codeql-19-workflow-permissions

Conversation

@localden

@localden localden commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Adds least-privilege permissions blocks to three workflows flagged by CodeQL (actions/missing-workflow-permissions):

Workflow Permission Rationale
main.yml contents: read checkout + schema checks only
markdown-format.yml contents: read checkout + format/link checks only
sep-lifecycle.yml check-sep job {} only writes to $GITHUB_OUTPUT, no checkout or API calls (the run-automation job already declares its own permissions)

Resolves code scanning alerts #19, #18, and #16.

The validate job only performs checkout and schema checks, so
contents: read is sufficient. Resolves code scanning alert #19
(actions/missing-workflow-permissions).

:house: Remote-Dev: homespace
@localden
localden requested review from a team as code owners March 24, 2026 01:18
@olaservo

Copy link
Copy Markdown
Member

/lgtm

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on behalf of @olaservo via /lgtm.

@olaservo
olaservo merged commit 6a6a8f5 into main Mar 24, 2026
11 checks passed
@olaservo
olaservo deleted the den/fix-codeql-19-workflow-permissions branch March 24, 2026 01:30
@localden localden changed the title Add explicit permissions to main.yml workflow Add explicit permissions to workflows missing them Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants