Skip to content

Instantly share code, notes, and snippets.

@JeroenKnoops
Last active April 21, 2023 09:26
Show Gist options
  • Save JeroenKnoops/7d77e0517e9a52be6a2d2fd91bfac9e1 to your computer and use it in GitHub Desktop.
Save JeroenKnoops/7d77e0517e9a52be6a2d2fd91bfac9e1 to your computer and use it in GitHub Desktop.
ratchet github actions without blank-lines
$ find . -name "*.y*" -path "./.github/workflows/*" -exec ratchet pin {} \;
$ git diff -U0 -w --no-color --ignore-blank-lines | git apply --cached --ignore-whitespace --unidiff-zero -
$ git commit -sm "Pin GH actions
Dependabot is also capable of pinning to future tag releases
and will maintain the comment that describes the shasum.
https://github.com/dependabot/dependabot-core/issues/4691"
$ git push
$ git restore .github/workflows/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment