Files
craft-common-actions/.github/workflows/git-sources.yml
Dylan M. Taylor 5e235d490b ci: lock workflow actions through an actions.lock lockfile
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.
2026-11-12 07:06:24 -05:00

40 lines
1.2 KiB
YAML

name: "Git sources"
# Fails unless the app builds only from what its Cargo.lock names, and every git dependency comes
# from github.com/storytold: Cargo.lock exists and is up to date, and no .cargo/config(.toml)
# replaces, patches or overrides a source. Callers run it beside their gate, or before a release:
#
# git-sources:
# uses: storytold/craft-common-actions/.github/workflows/git-sources.yml@main
# release:
# needs: git-sources
# uses: storytold/craft-common-actions/.github/workflows/release.yml@main
on:
workflow_call:
inputs:
working-directory:
description: "The Cargo workspace root, relative to the checkout"
type: string
required: false
default: "."
permissions:
contents: read
jobs:
git-sources:
name: Git dependencies come from storytold
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: storytold/craft-common-actions/actions/check-git-sources@main
with:
working-directory: ${{ inputs.working-directory }}