|
| 1 | +<a id="v1.7.5"></a> |
| 2 | +# [v1.7.5](https://github.com/rhysd/actionlint/releases/tag/v1.7.5) - 2024-12-28 |
| 3 | + |
| 4 | +- Strictly check available contexts in `${{ }}` placeholders following the ['Context availability' table](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#context-availability) in the official document. |
| 5 | + - For example, `jobs.<job>.env` allows `github` context but `jobs.<job>.services.<service>.env` doesn't allow any contexts. Now actionlint can catch the mistake. |
| 6 | + ```yaml |
| 7 | + jobs: |
| 8 | + test: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + env: |
| 11 | + # OK. `github` context is available here. |
| 12 | + COMMIT_SHA: ${{ github.sha }} |
| 13 | + services: |
| 14 | + redis: |
| 15 | + image: redis |
| 16 | + env: |
| 17 | + # ERROR: No context is available here. |
| 18 | + COMMIT_SHA: ${{ github.sha }} |
| 19 | + steps: |
| 20 | + - ... |
| 21 | + ``` |
| 22 | +- Check a string literal passed to `fromJSON()` call. This pattern is [popular](https://github.com/search?q=fromJSON%28%27+lang%3Ayaml&type=code) to create array or object constants because GitHub Actions does not provide the literal syntax for them. See the [document](https://github.com/rhysd/actionlint/blob/main/docs/checks.md#contexts-and-built-in-functions) for more details. ([#464](https://github.com/rhysd/actionlint/issues/464)) |
| 23 | + ```yaml |
| 24 | + jobs: |
| 25 | + test: |
| 26 | + # ERROR: Key 'mac' does not exist in the object returned by the fromJSON() |
| 27 | + runs-on: ${{ fromJSON('{"win":"windows-latest","linux":"ubuntul-latest"}')['mac'] }} |
| 28 | + steps: |
| 29 | + - run: echo This is a special branch! |
| 30 | + # ERROR: Broken JSON string passed to fromJSON. |
| 31 | + if: contains(fromJSON('["main","release","dev"'), github.ref_name) |
| 32 | + ``` |
| 33 | +- Allow passing command arguments to `-shellcheck` argument. ([#483](https://github.com/rhysd/actionlint/issues/483), thanks [@anuraaga](https://github.com/anuraaga)) |
| 34 | + - This is useful when you want to use alternative build of shellcheck like [go-shellcheck](https://github.com/wasilibs/go-shellcheck/). |
| 35 | + ```sh |
| 36 | + actionlint -shellcheck="go run github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest" |
| 37 | + ``` |
| 38 | +- Support undocumented `repository_visibility`, `artifact_cache_size_limit`, `step_summary`, `output`, `state` properties in `github` context. ([#489](https://github.com/rhysd/actionlint/issues/489), thanks [@rasa](https://github.com/rasa) for adding `repository_visibility` property) |
| 39 | +- Remove `macos-12` runner label from known labels because it was [dropped](https://github.com/actions/runner-images/issues/10721) from GitHub-hosted runners on Dec. 3 and is no longer available. |
| 40 | +- Add `windows-2025` runner label to the known labels. The runner is in [public preview](https://github.blog/changelog/2024-12-19-windows-server-2025-is-now-in-public-preview/). ([#491](https://github.com/rhysd/actionlint/issues/491), thanks [@ericcornelissen](https://github.com/ericcornelissen)) |
| 41 | +- Add `black` to the list of colors for `branding.color` action metadata. ([#485](https://github.com/rhysd/actionlint/issues/485), thanks [@eifinger](https://github.com/eifinger)) |
| 42 | +- Add `table` to the list of icons for `branding.icon` action metadata. |
| 43 | +- Fix parsing escaped `{` in `format()` function call's first argument. |
| 44 | +- Fix the incorrect `join()` function overload. `join(s1: string, s2: string)` was wrongly accepted. |
| 45 | +- Update popular actions data set to the latest. |
| 46 | + - Add `download-artifact/v3-node20` to the data set. ([#468](https://github.com/rhysd/actionlint/issues/468)) |
| 47 | + - Fix missing the `reviewdog/action-hadolint@v1` action input. ([#487](https://github.com/rhysd/actionlint/issues/487), thanks [@mi-wada](https://github.com/mi-wada)) |
| 48 | +- Link to the documents of the stable version in actionlint `man` page and `-help` output. |
| 49 | +- Refactor `LintStdin()` API example and some unit tests. ([#472](https://github.com/rhysd/actionlint/issues/472), [#475](https://github.com/rhysd/actionlint/issues/475), thanks [@alexandear](https://github.com/alexandear)) |
| 50 | +- Improve the configuration example in `actionlint.yaml` document to explain glob patterns for `paths`. ([#481](https://github.com/rhysd/actionlint/issues/481)) |
| 51 | + |
| 52 | +[Changes][v1.7.5] |
| 53 | + |
| 54 | + |
1 | 55 | <a id="v1.7.4"></a>
|
2 | 56 | # [v1.7.4](https://github.com/rhysd/actionlint/releases/tag/v1.7.4) - 2024-11-04
|
3 | 57 |
|
@@ -1784,6 +1838,7 @@ See documentation for more details:
|
1784 | 1838 | [Changes][v1.0.0]
|
1785 | 1839 |
|
1786 | 1840 |
|
| 1841 | +[v1.7.5]: https://github.com/rhysd/actionlint/compare/v1.7.4...v1.7.5 |
1787 | 1842 | [v1.7.4]: https://github.com/rhysd/actionlint/compare/v1.7.3...v1.7.4
|
1788 | 1843 | [v1.7.3]: https://github.com/rhysd/actionlint/compare/v1.7.2...v1.7.3
|
1789 | 1844 | [v1.7.2]: https://github.com/rhysd/actionlint/compare/v1.7.1...v1.7.2
|
@@ -1834,4 +1889,4 @@ See documentation for more details:
|
1834 | 1889 | [v1.1.0]: https://github.com/rhysd/actionlint/compare/v1.0.0...v1.1.0
|
1835 | 1890 | [v1.0.0]: https://github.com/rhysd/actionlint/tree/v1.0.0
|
1836 | 1891 |
|
1837 |
| -<!-- Generated by https://github.com/rhysd/changelog-from-release v3.8.0 --> |
| 1892 | +<!-- Generated by https://github.com/rhysd/changelog-from-release v3.8.1 --> |
0 commit comments