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
40 lines
1.3 KiB
YAML
40 lines
1.3 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@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
with:
|
|
egress-policy: audit
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: storytold/craft-common-actions/actions/check-git-sources@main
|
|
with:
|
|
working-directory: ${{ inputs.working-directory }}
|