Skip to content

[codex] Harden GitHub workflows#484

Merged
ansman merged 1 commit into
mainfrom
codex/harden-github-workflows
Jun 11, 2026
Merged

[codex] Harden GitHub workflows#484
ansman merged 1 commit into
mainfrom
codex/harden-github-workflows

Conversation

@ansman

@ansman ansman commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

Harden the repository GitHub Actions workflows against mutable third-party action refs and overly broad default token permissions.

Changes

  • Add explicit least-privilege contents: read permissions to the Gradle workflow.
  • Keep the docs publishing workflow scoped to contents: write, which it needs for publication.
  • Pin all referenced GitHub Actions to full commit SHAs, with the original version tags preserved as comments for readability.

Validation

  • Parsed .github/workflows/gradle.yml and .github/workflows/pages.yml as YAML.
  • Searched .github/workflows for pull_request_target, id-token, actions/cache, and remaining mutable action refs such as @vN, @main, or @master; none were found.

@ansman ansman marked this pull request as ready for review June 11, 2026 13:33
@ansman ansman enabled auto-merge (squash) June 11, 2026 13:34
@ansman ansman merged commit be96db6 into main Jun 11, 2026
2 checks passed
@ansman ansman deleted the codex/harden-github-workflows branch June 11, 2026 13:39
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