mirror of
https://github.com/storytold/craft-common-actions.git
synced 2026-11-15 15:02:24 +00:00
- Add allowed-endpoints to ast-grep.yml matching test-ast-grep.yml - Add pypi.org and files.pythonhosted.org to sonarcloud.yml for Python coverage - Add packages.microsoft.com:443 and https mirrors to apt allowed-endpoints - Set unvalidated reusable workflows (release, docker-build, gate, etc.) to audit mode
41 lines
1.4 KiB
YAML
41 lines
1.4 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@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 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@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # 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
|