Skip to content

[github-actions] Reduce workflow token permissions (#63)#89

Merged
coisa merged 2 commits intomainfrom
codex/63-reduce-workflow-permissions
Apr 18, 2026
Merged

[github-actions] Reduce workflow token permissions (#63)#89
coisa merged 2 commits intomainfrom
codex/63-reduce-workflow-permissions

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 18, 2026

Summary

  • Reduce tests.yml workflow and packaged stub to read-only repository contents.
  • Move reports/wiki write permissions to the jobs that push generated content or clean previews.
  • Split reports preview commenting into its own job with pull-requests: write.
  • Declare issues: read for label sync and document the remaining required write scopes.

Verification

  • ruby -e 'require "yaml"; ARGV.each { |file| YAML.load_file(file); puts "ok #{file}" }' .github/workflows/*.yml resources/github-actions/*.yml
  • git diff --check

Notes

  • composer dev-tools docs and PHP-based hooks could not run locally because this shell does not have php on PATH.
  • Current reports publishing uses the gh-pages branch, so publish and cleanup jobs still require contents: write instead of pages: write/id-token: write.

Closes #63

@github-actions github-actions Bot added the enhancement New feature or request label Apr 18, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@coisa coisa merged commit 3e009b8 into main Apr 18, 2026
2 checks passed
@coisa coisa deleted the codex/63-reduce-workflow-permissions branch April 18, 2026 15:49
github-actions Bot added a commit that referenced this pull request Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

Reduce GitHub Actions workflow permissions

1 participant