Skip to content

[v8] Fix(ci): restrict integration tests to trusted contributors or safe-to-test label#3805

Merged
prkalle merged 1 commit into
cloudfoundry:v8from
prkalle:fix/ci_sec_v8
Jun 22, 2026
Merged

[v8] Fix(ci): restrict integration tests to trusted contributors or safe-to-test label#3805
prkalle merged 1 commit into
cloudfoundry:v8from
prkalle:fix/ci_sec_v8

Conversation

@prkalle

@prkalle prkalle commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description of the Change

This PR restricts integration tests to trusted contributors or safe-to-test label

Why Is This PR Valuable?

This PR improves the security posture of the integration test CI workflow by ensuring only trusted contributors can trigger test runs against repository infrastructure. It also reduces maintainer overhead by automatically signaling(by removing the safe-to-test label) when a PR needs re-approval after new commits are pushed.

Applicable Issues

List any applicable GitHub Issues here

How Urgent Is The Change?

Fairly urget

Other Relevant Parties

Who else is affected by the change?

…o-test label

Gate the get-sha job in tests-integration.yml so CI runs automatically
only for contributors with explicit repository write access (OWNER or
COLLABORATOR). All others require a maintainer to add the "safe-to-test"
label, which must be done via a labeled event — not checked by label
presence — eliminating any race condition on new commits.

Add remove-safe-to-test-label.yml to automatically strip the
safe-to-test label when a contributor pushes new commits, so a
maintainer must explicitly re-label before CI runs again on the
updated code.

Signed-off-by: Prem Kumar Kalle <prem.kalle@broadcom.com>

@anujc25 anujc25 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@prkalle prkalle changed the title Fix(ci): restrict integration tests to trusted contributors or safe-to-test label [v8] Fix(ci): restrict integration tests to trusted contributors or safe-to-test label Jun 22, 2026
@prkalle prkalle merged commit 12e875d into cloudfoundry:v8 Jun 22, 2026
13 of 14 checks passed
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.

2 participants