From 8c41763bd410e85238443cd143524bec8a9ae7c9 Mon Sep 17 00:00:00 2001 From: Lars Laskowski <26182282+LarsLaskowski@users.noreply.github.com> Date: Sat, 19 Sep 2026 08:34:36 +0200 Subject: [PATCH 1/2] Rebuild website after release Sends a repository_dispatch event to LarsLaskowski/e-networld after every published release. Requires the WEBSITE_DISPATCH_TOKEN secret. Co-Authored-By: Claude Opus 5 --- .github/workflows/notify-website.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/notify-website.yml diff --git a/.github/workflows/notify-website.yml b/.github/workflows/notify-website.yml new file mode 100644 index 0000000..4981cd7 --- /dev/null +++ b/.github/workflows/notify-website.yml @@ -0,0 +1,21 @@ +# Template for the project repositories: .github/workflows/notify-website.yml +# Triggers a rebuild of www.e-networld.de after every published release. +# Requires the repository secret WEBSITE_DISPATCH_TOKEN +# (fine-grained token, repository access limited to LarsLaskowski/e-networld, +# permission "Contents: Read and write"). +name: Notify website + +on: + release: + types: [published] + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.WEBSITE_DISPATCH_TOKEN }} + repository: LarsLaskowski/e-networld + event-type: release + client-payload: '{"repo": "${{ github.repository }}", "tag": "${{ github.event.release.tag_name }}"}' From ef45d39f1a60c32b2d65c5d240f7f355bacc4610 Mon Sep 17 00:00:00 2001 From: Lars Laskowski <26182282+LarsLaskowski@users.noreply.github.com> Date: Sat, 19 Sep 2026 08:39:16 +0200 Subject: [PATCH 2/2] Pin repository-dispatch action to full commit SHA Addresses the SonarQube finding "Use full commit SHA hash for this dependency". The tag is kept as a comment so Dependabot can update it. Co-Authored-By: Claude Opus 5 --- .github/workflows/notify-website.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify-website.yml b/.github/workflows/notify-website.yml index 4981cd7..99fd914 100644 --- a/.github/workflows/notify-website.yml +++ b/.github/workflows/notify-website.yml @@ -13,7 +13,7 @@ jobs: dispatch: runs-on: ubuntu-latest steps: - - uses: peter-evans/repository-dispatch@v4 + - uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.WEBSITE_DISPATCH_TOKEN }} repository: LarsLaskowski/e-networld