actions / publish-immutable-action

A GitHub Action used for publishing an Action to ghcr.io as an OCI container.
MIT License
42 stars 7 forks source link

Fail if local changes made to the checked out action content #182

Closed conorsloan closed 3 months ago

conorsloan commented 3 months ago

We already make checks using git that the correct commit is checked out based on the GITHUB_REF. This is not as useful unless we also check that the current git status is clean, i.e. there are no untracked or modified files in the working directory.

We'll potentially want to support this one day when there are build processes which alter the code by adding built artifacts, but that isn't how actions work today.