Files
typos/.github/workflows/pre-commit.yml
T
renovate[bot] 94c8ee6e54 chore(deps): Update Prek to v0.3.9 (#59)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [prek](https://redirect.github.com/j178/prek) | patch | `0.3.8` →
`0.3.9` |

---

### Release Notes

<details>
<summary>j178/prek (prek)</summary>

###
[`v0.3.9`](https://redirect.github.com/j178/prek/blob/HEAD/CHANGELOG.md#039)

[Compare
Source](https://redirect.github.com/j178/prek/compare/v0.3.8...v0.3.9)

Released on 2026-04-13.

##### Highlight

`prek auto-update` is now stricter about pinned revisions and more
useful in CI.
It now keeps `rev` and `# frozen:` comments in sync, can detect
[impostor commits](https://docs.zizmor.sh/audits/#impostor-commit) when
validating pinned SHAs,
and lets you use `prek auto-update --check` to fail on both available
updates and frozen-ref
mismatches without rewriting the config.

Examples:

```console
$ prek auto-update

# updates revs and repairs stale `# frozen:` comments

$ prek auto-update --freeze

# writes frozen SHAs with matching `# frozen: <tag>` comments

$ prek auto-update --check

# exits non-zero when updates are available, a `# frozen:` comment is stale,
# or a pinned SHA does not belong to the fetched upstream refs
```

##### Enhancements

- Check and sync frozen comments during auto-update
([#&#8203;1896](https://redirect.github.com/j178/prek/pull/1896))
- Handle impostor commits in auto-update
([#&#8203;1919](https://redirect.github.com/j178/prek/pull/1919))
- Add experimental `language: dotnet` support
([#&#8203;1871](https://redirect.github.com/j178/prek/pull/1871))
- Honor repo and worktree `core.hooksPath`
([#&#8203;1892](https://redirect.github.com/j178/prek/pull/1892))
- Add `prek run --no-fail-fast` to override config file
([#&#8203;1859](https://redirect.github.com/j178/prek/pull/1859))
- Add `forbid-new-submodules` as builtin hook
([#&#8203;1853](https://redirect.github.com/j178/prek/pull/1853))
- Clean stale patch files in `cache gc`
([#&#8203;1877](https://redirect.github.com/j178/prek/pull/1877))
- Display auto-update results by config entry
([#&#8203;1922](https://redirect.github.com/j178/prek/pull/1922))
- Restrict patch directory permissions
([#&#8203;1876](https://redirect.github.com/j178/prek/pull/1876))
- Show tag names in `auto-update --freeze` output
([#&#8203;1916](https://redirect.github.com/j178/prek/pull/1916))
- Use a bitset for hook stages
([#&#8203;1860](https://redirect.github.com/j178/prek/pull/1860))

##### Bug fixes

- Canonicalize CWD and GIT\_ROOT paths
([#&#8203;1878](https://redirect.github.com/j178/prek/pull/1878))
- Ensure quotes are added for non-string revisions in `auto-update`
([#&#8203;1936](https://redirect.github.com/j178/prek/pull/1936))

##### Documentation

- Update docs for case of hooks modifying files with a non-zero exit
code ([#&#8203;1879](https://redirect.github.com/j178/prek/pull/1879))

##### Contributors

- [@&#8203;RicardoVercetti](https://redirect.github.com/RicardoVercetti)
-
[@&#8203;nathanjmcdougall](https://redirect.github.com/nathanjmcdougall)
- [@&#8203;renovate](https://redirect.github.com/renovate)
- [@&#8203;sadjow](https://redirect.github.com/sadjow)
- [@&#8203;j178](https://redirect.github.com/j178)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Every minute (`* * * * *`)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/epage/_rust).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMTAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjExMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-13 15:15:05 +00:00

31 lines
595 B
YAML

name: pre-commit
permissions: {} # none
on:
pull_request:
push:
branches: [main]
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
pre-commit:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
with:
prek-version: '0.3.9'