mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-29 09:44:16 +01:00
Mutable action tags are a supply-chain risk: a moved tag runs different code without a diff. Every workflow action is now pinned through .github/workflows/actions.lock, and a new Lockfile workflow runs `gh actions-lock --verify` so an out-of-sync or tampered lockfile fails CI. Local composite actions use `$/` so the lockfile covers what they use.
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: Refresh release contributors
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
artifact-name:
|
|
description: Contributor snapshot to pass to the release workflow
|
|
value: ${{ jobs.refresh.outputs.artifact-name }}
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
refresh:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
outputs:
|
|
artifact-name: contributor-snapshot-${{ github.run_id }}-${{ github.run_attempt }}
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
- name: Refresh contributor credits for this release commit
|
|
# Use the generator paired with this workflow revision, including pinned/forked calls.
|
|
uses: $/actions/refresh-contributors
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
- name: Save the refreshed snapshot for all release builds
|
|
uses: actions/upload-artifact@v7.0.2
|
|
with:
|
|
name: contributor-snapshot-${{ github.run_id }}-${{ github.run_attempt }}
|
|
path: contributors/contributors.json
|
|
if-no-files-found: error
|
|
retention-days: 7
|