AllenInstitute / MIES

Multichannel Igor Electrophysiology Suite
https://alleninstitute.github.io/MIES/user.html
Other
21 stars 6 forks source link

HEAD commit of MIES installer of a PR is a transient revision #2117

Open t-b opened 1 month ago

t-b commented 1 month ago

For our CI, GH actions, we use the pull_request workflow 1 mode. This creates a merge commit against the base branch to run the CI against. This means that the git revision of that CI run is not the HEAD of the branch PR but a transient revision.

The alternative pull_request_target 2 has various warnings attached to keep CI secure. So this looks fragile see https://securitylab.github.com/research/github-actions-preventing-pwn-requests.

Instead we could use push with branches-ignore, see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#running-your-workflow-only-when-a-push-to-specific-branches-occurs.

t-b commented 1 month ago

We should use push with branch ignore.