mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Bumps the actions group with 1 update in the / directory: [step-security/harden-runner](https://github.com/step-security/harden-runner). Updates `step-security/harden-runner` from 2.22.4 to 2.23.0 - [Release notes](https://github.com/step-security/harden-runner/releases) - [Commits](https://github.com/step-security/harden-runner/compare/1d88384fd173af6ecb012dfd0264a306b711241a...aebdcf6156ab6691adf63218240e476564a1ed4c) --- updated-dependencies: - dependency-name: step-security/harden-runner dependency-version: 2.23.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
name: Cache prune
|
|
|
|
# A pass of the cache prune after every CI attempt on main. ci.yml's `cache prune` job prunes while
|
|
# a run's jobs save their entries, but "Re-run failed jobs" re-runs only the failed jobs: a re-run
|
|
# `cache warm` leg saves a new entry, and the prune job, which succeeded in the first attempt, does
|
|
# not run again. The entry it replaced would stay until the next main run, and with it the cache
|
|
# would be over its 10 GB budget, where GitHub evicts entries a run still needs. This runs once
|
|
# after every attempt, re-runs and canceled runs included (craft-common-actions actions/cache-prune).
|
|
on:
|
|
workflow_run:
|
|
workflows: [CI]
|
|
types: [completed]
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
cache-prune:
|
|
name: cache prune
|
|
# A fork's pull request from a branch named main also matches `branches`.
|
|
if: github.event.workflow_run.event != 'pull_request'
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
actions: write
|
|
steps:
|
|
- name: Harden runner
|
|
uses: step-security/harden-runner@aebdcf6156ab6691adf63218240e476564a1ed4c # 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
|