Skip to content

Conversation

@bobpaw
Copy link
Collaborator

@bobpaw bobpaw commented Jul 4, 2025

Fix cleanup-caches workflow for PRs from forks

  • .github/workflows/cleanup-caches.yml: change trigger type to
    pull_request_target which should provide a read-write token.

I am pretty sure that this works correctly, but cannot test it effectively because the cmake.yml workflow only runs for PRs which target the develop branch and the pull_request_target only runs when the base branch has the changed workflow file.

@cwsmith, do we want to merge this and then create a bogus testing PR? Or make a contrived branch with cmake.yml which runs for PRs which do not target develop, alter cleanup-caches.yml also, then make a bogus PR which targets that contrived branch, runs the cmake.yml workflow, and then close it to confirm it works?

Confirmed with https://github.com/SCOREC/core/actions/runs/16089570529 which ran on a PR from a forked branch.

bobpaw added 2 commits July 4, 2025 00:00
- .github/workflows/cleanup-caches.yml: change trigger type to
  pull_request_target which should provide a read-write token.
- meaningless change to CMakeLists.txt to activate cmake CI

Signed-off-by: Aiden Woodruff <aiden@aidenw.net>
Signed-off-by: Aiden Woodruff <aiden@aidenw.net>
@bobpaw
Copy link
Collaborator Author

bobpaw commented Jul 4, 2025

FYI this should be squashed when it is merged

@bobpaw bobpaw requested a review from cwsmith July 5, 2025 15:36
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

Nice. Thank you.

@cwsmith cwsmith merged commit 9c983f8 into develop Jul 5, 2025
1 check passed
@cwsmith cwsmith deleted the apw/fix-cache-cleanup branch July 5, 2025 16:18
@cwsmith cwsmith added v4.1.0 changes included in the 4.1.0 release CI labels Aug 26, 2025
@cwsmith cwsmith mentioned this pull request Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI v4.1.0 changes included in the 4.1.0 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants