Skip to content

Commit

Permalink
Update pre-commit hook rhysd/actionlint to v1.7.4 (#256)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rhysd/actionlint](https://redirect.github.com/rhysd/actionlint) |
repository | patch | `v1.7.3` -> `v1.7.4` |

Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://redirect.github.com/renovatebot/renovate/discussions/new)
if you have any questions.

---

### Release Notes

<details>
<summary>rhysd/actionlint (rhysd/actionlint)</summary>

###
[`v1.7.4`](https://redirect.github.com/rhysd/actionlint/blob/HEAD/CHANGELOG.md#v174---2024-11-04)

[Compare
Source](https://redirect.github.com/rhysd/actionlint/compare/v1.7.3...v1.7.4)

- Disallow the usage of popular actions that run on `node16` runner. The
`node16` runner [will reach the end of life on November
12](https://github.blog/changelog/2024-09-25-end-of-life-for-actions-node16/).
- In case of the error, please update your actions to the latest version
so that they run on the latest `node20` runner.
- If you're using self-hosted runner and you cannot upgrade your runner
to `node20` soon, please consider to ignore the error by the `paths`
configuration described below.
- Provide the configuration for ignoring errors by regular expressions
in `actionlint.yml` (or `actionlint.yaml`). Please see the
[document](https://redirect.github.com/rhysd/actionlint/blob/v1.7.4/docs/config.md)
for more details.
([#&#8203;217](https://redirect.github.com/rhysd/actionlint/issues/217),
[#&#8203;342](https://redirect.github.com/rhysd/actionlint/issues/342))
- The `paths` is a mapping from the file path glob pattern to the
corresponding configuration. The `ignore` configuration is a list of
regular expressions to match error messages (similar to the `-ignore`
command line option).
        ```yaml
        paths:
        ```

### This pattern matches any YAML file under the '.github/workflows/'
directory.

      .github/workflows/**/*.yaml:
        ignore:

### Ignore the specific error from shellcheck

          - 'shellcheck reported issue in this script: SC2086:.+'

### This pattern only matches '.github/workflows/release.yaml' file.

      .github/workflows/self-hosted.yaml:
        ignore:

### Ignore errors from the old runner check. This may be useful for
(outdated) self-hosted runner environment.

- 'the runner of ".+" action is too old to run on GitHub Actions'
    ```

- This configuration was not implemented initially because I wanted to
keep the configuration as minimal as possible. However, due to several
requests for it, the configuration has now been added.
- Untrusted inputs check is safely skipped inside specific function
calls.
([#&#8203;459](https://redirect.github.com/rhysd/actionlint/issues/459),
thanks [@&#8203;IlyaGulya](https://redirect.github.com/IlyaGulya))
- For example, the following step contains the untrusted input
`github.head_ref`, but it is safe because it's passed to the
`contains()` argument.
        ```yaml
- run: echo "is_release_branch=${{ contains(github.head_ref, 'release')
}}" >> "$GITHUB_OUTPUT"
        ```
- For more details, please read the [rule
document](https://redirect.github.com/rhysd/actionlint/blob/v1.7.4/docs/checks.md#untrusted-inputs).
- Recognize `gcr.io` and `gcr.dev` as the correct container registry
hosts.
([#&#8203;463](https://redirect.github.com/rhysd/actionlint/issues/463),
thanks
[@&#8203;takaidohigasi](https://redirect.github.com/takaidohigasi))
- Note that it is recommended explicitly specifying the scheme like
`docker://gcr.io/...`.
- Remove `macos-x.0` runner labels which are no longer available.
([#&#8203;452](https://redirect.github.com/rhysd/actionlint/issues/452))
- Disable shellcheck [`SC2043`](https://www.shellcheck.net/wiki/SC2043)
rule because it can cause false positives on checking `run:`.
([#&#8203;355](https://redirect.github.com/rhysd/actionlint/issues/355))
- The [rule
document](https://redirect.github.com/rhysd/actionlint/blob/v1.7.4/docs/checks.md#check-shellcheck-integ)
was updated as well.
([#&#8203;466](https://redirect.github.com/rhysd/actionlint/issues/466),
thanks [@&#8203;risu729](https://redirect.github.com/risu729))
- Fix the error message was not deterministic when detecting cycles in
`needs` dependencies.
- Fix the check for `format()` function was not applied when the
function name contains upper case like `Format()`. Note that function
names in `${{ }}` placeholders are case-insensitive.
-   Update the popular actions data set to the latest.
- This includes the [new `ref` and `commit`
outputs](https://redirect.github.com/actions/checkout/pull/1180) of
`actions/checkout`.
- Add
[`actions/cache/save`](https://redirect.github.com/actions/cache/tree/main/save)
and
[`actions/cache/restore`](https://redirect.github.com/actions/cache/tree/main/restore)
to the popular actions data set.
- Links in the
[README.md](https://redirect.github.com/rhysd/actionlint/blob/main/README.md)
now point to the document of the latest version tag instead of HEAD of
`main` branch.
- Add
[`Linter.LintStdin`](https://pkg.go.dev/github.com/rhysd/actionlint#Linter.LintStdin)
method dedicated to linting STDIN instead of handling STDIN in
`Command`.
- (Dev) Add new [`check-checks`
script](https://redirect.github.com/rhysd/actionlint/tree/main/scripts/check-checks)
to maintain the ['Checks'
document](https://redirect.github.com/rhysd/actionlint/blob/main/docs/checks.md).
It automatically updates the outputs and playground links for example
inputs in the document. It also checks the document is up-to-date on CI.
Please read the
[document](https://redirect.github.com/rhysd/actionlint/blob/main/scripts/check-checks/README.md)
for more details.


[Documentation](https://redirect.github.com/rhysd/actionlint/tree/v1.7.4/docs)

\[Changes]\[v1.7.4]

<a id="v1.7.3"></a>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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/lalten/rules_appimage).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS43LjEiLCJ1cGRhdGVkSW5WZXIiOiIzOS43LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 26, 2024
1 parent bbb695a commit b97eeb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
exclude: ^bazel-
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
rev: v1.7.4
hooks:
- id: actionlint
- repo: https://github.com/warchant/pre-commit-buildifier
Expand Down

0 comments on commit b97eeb4

Please sign in to comment.