siderolabs / conform

Policy enforcement for your pipelines.
Mozilla Public License 2.0
432 stars 45 forks source link

fix: don't try git checkout repository twice #215

Closed smira closed 2 years ago

smira commented 2 years ago

Checkout was happening two times: once in the serve command and one again in the enforce command with GitHub reporter.

Replace that with GitHub-provided SHA of the PR head.

This fixes an error while checking out PRs:

Error: failed to create enforcer: worktree contains unstaged changes

Signed-off-by: Andrey Smirnov andrey.smirnov@talos-systems.com

smira commented 2 years ago

/m --ff