Skip to content

ci: skip vmtests artifact delete on fork PRs - #5356

Open
amarkdotdev wants to merge 1 commit into
cilium:mainfrom
amarkdotdev:fix/vmtests-delete-artifact-forks
Open

ci: skip vmtests artifact delete on fork PRs#5356
amarkdotdev wants to merge 1 commit into
cilium:mainfrom
amarkdotdev:fix/vmtests-delete-artifact-forks

Conversation

@amarkdotdev

Copy link
Copy Markdown

Fixes #2010

Description

geekyeggo/delete-artifact in the vmtests / vmpolicytests post-test jobs fails on pull requests from forks with Resource not accessible by integration, because the restricted GITHUB_TOKEN cannot delete artifacts.

Skip the cleanup job for fork PRs. Same-repo PRs and pushes to main still delete the build artifact on overall success.

Changelog

ci: skip vmtests artifact deletion on fork PRs

delete-artifact needs actions:write, which the restricted
GITHUB_TOKEN for pull requests from forks does not grant.
Gate post-test cleanup to same-repo PRs and pushes.

Fixes cilium#2010

Signed-off-by: amarkdotdev <amarkdotdev@users.noreply.github.com>
@amarkdotdev
amarkdotdev requested a review from a team as a code owner July 30, 2026 16:11
@amarkdotdev
amarkdotdev requested a review from sayboras July 30, 2026 16:11
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.

vmtests post-test delete-artifact fails on fork

1 participant