Update GH actions security

This commit is contained in:
Dan Harrin
2026-05-14 09:31:06 +01:00
parent b3262c4ff5
commit 6b3e05614b
8 changed files with 155 additions and 83 deletions

View File

@@ -1,4 +1,4 @@
name: "Update Changelog"
name: update-changelog
on:
release:
@@ -12,19 +12,21 @@ jobs:
runs-on: ubuntu-latest
steps:
# persist-credentials: true is required so `git-auto-commit-action` below
# can push the CHANGELOG update.
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # zizmor: ignore[artipacked]
with:
ref: main
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1.12.0
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
branch: main
commit_message: Update CHANGELOG