Skip to content

Conversation

@samcday
Copy link
Owner

@samcday samcday commented Feb 14, 2025

The current setup doesn't work with pull requests, even if no changes were made to the CI Dockerfile.

So instead, split the build-image job into a separate workflow that is only triggered manually. If someone submits a PR that updates the CI image, a maintainer with admin/write access must cherry-pick those commits into a branch, push that to the origin repo, and run this workflow on that branch.

I think there's a better way to do this with pull_request_target, but I need to wrap my brain around the security implications first.

@github-actions
Copy link

The CI build recorded and generated some videos

Demo video (shown on README and release notes)

accent-colours

emergency-calls

first-run

keypad-shuffle

simple-flow

trivial-flow

The current setup doesn't work with pull requests, even if no changes
were made to the CI Dockerfile.

So instead, split the build-image job into a separate workflow that is
*only* triggered manually. If someone submits a PR that updates the CI
image, a maintainer with admin/write access must cherry-pick those
commits into a branch, push that to the origin repo, and run this
workflow on that branch.

I think there's a better way to do this with pull_request_target, but I
need to wrap my brain around the security implications first.

Signed-off-by: Sam Day <me@samcday.com>
@samcday samcday merged commit a854f7a into main Feb 14, 2025
1 of 2 checks passed
@samcday samcday deleted the fix-pr-ci branch February 14, 2025 10:36
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