mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-02 15:01:23 -05:00
ci: align cache-prune harden-runner with the other workflows and describe what it prunes here
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
version: 'v0.0.3'
|
||||
workflows:
|
||||
'.github/workflows/cache-prune.yml':
|
||||
- 'step-security/harden-runner@v2.22.4'
|
||||
- 'step-security/harden-runner@v2.23.0'
|
||||
- 'storytold/craft-common-actions@main'
|
||||
'.github/workflows/ci.yml': []
|
||||
'.github/workflows/freebsd.yml': []
|
||||
@@ -52,11 +52,6 @@ dependencies:
|
||||
commit: 'sha1-8dd607977d06adf4ed49b190381e74c17a9dd25f'
|
||||
owner_id: 88700172
|
||||
repo_id: 1249865941
|
||||
'step-security/harden-runner@v2.22.4':
|
||||
ref: 'v2.22.4'
|
||||
commit: 'sha1-1d88384fd173af6ecb012dfd0264a306b711241a'
|
||||
owner_id: 88700172
|
||||
repo_id: 422287306
|
||||
'step-security/harden-runner@v2.23.0':
|
||||
ref: 'v2.23.0'
|
||||
commit: 'sha1-aebdcf6156ab6691adf63218240e476564a1ed4c'
|
||||
@@ -64,7 +59,7 @@ dependencies:
|
||||
repo_id: 422287306
|
||||
'storytold/craft-common-actions@main':
|
||||
ref: 'main'
|
||||
commit: 'sha1-be5bc5fc0f00cc0e20023f0d64f077de13e9da32'
|
||||
commit: 'sha1-bc70e5d7f90828265b20708399a2265e62b9b7d6'
|
||||
owner_id: 76897702
|
||||
repo_id: 1414429108
|
||||
uses:
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
name: Cache prune
|
||||
|
||||
# Keeps one rolling gate entry on main, so the repository stays within its 10 GB Actions cache
|
||||
# budget, where GitHub evicts entries a run still needs. Each main CI attempt's `cache warm` leg
|
||||
# saves a new rolling entry; this deletes the entry it replaced once the attempt ends. It runs once
|
||||
# after every attempt, re-runs of failed jobs and canceled runs included (craft-common-actions
|
||||
# Deletes main's dependency-cache entries that a newer entry replaced (after a toolchain or
|
||||
# lockfile update) and no run has used since, so the repository stays within its 10 GB Actions
|
||||
# cache budget, where GitHub evicts entries a run still needs. It runs once after every main CI
|
||||
# attempt, re-runs of failed jobs and canceled runs included (craft-common-actions
|
||||
# actions/cache-prune).
|
||||
on:
|
||||
workflow_run:
|
||||
@@ -25,10 +25,10 @@ jobs:
|
||||
actions: write
|
||||
steps:
|
||||
- name: Harden runner
|
||||
uses: step-security/harden-runner@v2.22.4
|
||||
uses: step-security/harden-runner@v2.23.0
|
||||
with:
|
||||
egress-policy: audit
|
||||
# A failed pass warns; the next run's prune deletes what it missed.
|
||||
- name: Prune replaced cache entries
|
||||
uses: storytold/craft-common-actions/actions/cache-prune@main
|
||||
continue-on-error: true
|
||||
continue-on-error: true
|
||||
|
||||
Reference in New Issue
Block a user