Skip to content

ci: enhance backport workflow security#1977

Merged
RafilxTenfen merged 1 commit intomainfrom
ci-enhance-backport-workflow-security
Mar 16, 2026
Merged

ci: enhance backport workflow security#1977
RafilxTenfen merged 1 commit intomainfrom
ci-enhance-backport-workflow-security

Conversation

@liam-icheng-lai
Copy link
Contributor

@liam-icheng-lai liam-icheng-lai commented Mar 12, 2026

Pinned action to commit SHA — tibdex/backport@9565281 # v2. A compromised or force-pushed v2 tag can no longer substitute malicious code; the runner will only execute the exact commit that was audited.

Restricted permissions — added an explicit block with only contents: write (to push the backport branch) and pull-requests: write (to open the PR and post comments). All other permissions (actions, id-token, packages, etc.) default to none, limiting blast radius if the action is ever abused.

@liam-icheng-lai liam-icheng-lai requested a review from a team as a code owner March 12, 2026 03:56
@github-actions
Copy link
Contributor

🔐 Commit Signature Verification

All 1 commit(s) passed verification

Commit Author Signature Key Type Key Check
9b9a18571670 liam.lai sk-ssh-ed25519

Summary

  • Commits verified: 1
  • Signature check: ✅ All passed
  • Key type enforcement: ✅ All sk-ssh-ed25519

Required key type: sk-ssh-ed25519 (FIDO2 hardware key)

Last verified: 2026-03-12 03:56 UTC

Copy link
Contributor

@mpastecki mpastecki left a comment

Choose a reason for hiding this comment

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

Reviewed: SHA 9565281eda0731b1d20c4025c43339fb0a23812e verified against current tibdex/backport v2 tag. Permissions correctly scoped to minimum required (contents: write, pull-requests: write). LGTM.

@RafilxTenfen RafilxTenfen merged commit 65d793a into main Mar 16, 2026
38 of 40 checks passed
@RafilxTenfen RafilxTenfen deleted the ci-enhance-backport-workflow-security branch March 16, 2026 20:40
mergify bot pushed a commit that referenced this pull request Mar 16, 2026
Pinned action to commit SHA —
tibdex/backport@9565281 # v2. A
compromised or force-pushed v2 tag can no longer substitute malicious
code; the runner will only execute the exact commit that was audited.

Restricted permissions — added an explicit block with only contents:
write (to push the backport branch) and pull-requests: write (to open
the PR and post comments). All other permissions (actions, id-token,
packages, etc.) default to none, limiting blast radius if the action is
ever abused.

(cherry picked from commit 65d793a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants