Skip to content

refactor: add job-level permissions to workflows#1178

Closed
ffflorian wants to merge 1 commit intomainfrom
refactor/workflow-permissions
Closed

refactor: add job-level permissions to workflows#1178
ffflorian wants to merge 1 commit intomainfrom
refactor/workflow-permissions

Conversation

@ffflorian
Copy link
Copy Markdown
Owner

Remove global permissions blocks and add job-specific permissions to all workflows.

Each job now includes appropriate permissions based on its operations:

  • Standard jobs: contents: read
  • Publishing jobs: id-token: write, contents: write
  • Security jobs: security-events: write, packages: read, actions: read

Follows GitHub Security Hardening best practices:
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Remove global permissions and add job-specific scopes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ffflorian
Copy link
Copy Markdown
Owner Author

Superseded by chore: PR with correct prefix

@ffflorian ffflorian closed this Apr 18, 2026
@ffflorian ffflorian deleted the refactor/workflow-permissions branch April 18, 2026 16:43
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