2 Tips and tricks
Stefano Pigozzi edited this page 2026-01-02 19:43:06 +01:00

Tips and tricks

Local schema validation

Forgejo Runner supports validating workflow files by calling forgejo-runner validate on them.

Make sure to check them that way to prevent weird errors appearing in CI/CD workflows!

SHA256 repositories

To allow https://code.forgejo.org/actions/checkout to checkout SHA256 repositories, run git config --global init.defaultObjectFormat sha256 before running it:

-
  name: "Set SHA256 as default Git object format"
  run: |-
    git config --global init.defaultObjectFormat sha256
-
  name: "Checkout repository"
  uses: https://code.forgejo.org/actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8