Skip to content

Harden Claude release workflow security#1130

Merged
marwen-abid merged 2 commits into
developfrom
harden-claude-action
May 27, 2026
Merged

Harden Claude release workflow security#1130
marwen-abid merged 2 commits into
developfrom
harden-claude-action

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

What

Apply a best practice to the automated_release_process workflow:

  • Move the broad contents: write/pull-requests: write/issues: write/id-token: write scope from workflow level to the single job that needs it; set top-level permissions: {} so any future job added to this file inherits nothing by default.

Why

This is pretty minor, but brings this workflow in line with the Claude-action security standards being applied across the stellar org (see stellar/stellar-core PR #5258 and the claude-code-action security guide). Without permissions: {} at the workflow root, any future job added to this file would silently inherit the broad write scopes. Moving them to the job level limits the blast radius if this workflow expands in the future.

Copilot AI review requested due to automatic review settings May 8, 2026 14:10
@leighmcculloch leighmcculloch temporarily deployed to Receiver Registration - E2E Integration Tests (Stellar) May 8, 2026 14:10 — with GitHub Actions Inactive
@leighmcculloch leighmcculloch temporarily deployed to Internal SEP Tests May 8, 2026 14:10 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the automated_release_process GitHub Actions workflow by removing broad default GITHUB_TOKEN permissions at the workflow level and scoping them to the specific job that requires write access. This reduces risk if additional jobs are added later, by ensuring they inherit no token permissions unless explicitly granted.

Changes:

  • Set workflow-level permissions: {} to revoke all default GITHUB_TOKEN scopes for the workflow.
  • Add job-level permissions to create-release to retain required write capabilities (contents, PRs, issues, OIDC).

@stellar-jenkins-ci
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@marwen-abid marwen-abid left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for this 🙏

@marwen-abid marwen-abid merged commit fb9f304 into develop May 27, 2026
22 checks passed
@marwen-abid marwen-abid deleted the harden-claude-action branch May 27, 2026 18:58
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.

3 participants