mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 04:35:40 +09:00
Most of the official actions move one or more majors, onto the Node 24 runtime. The inputs these workflows pass are still accepted, and the contract tests that pin the checkout and App token commits follow. Since checkout v6 the persisted token lives in a separate config file, so unsetting the extra header in .git/config no longer removes it. The release job's checkout stops persisting credentials, so its staging branch push goes out with the App token, and a contract test guards that setting. The flux action stays on v2.8.6, whose tag has to equal the Flux CLI version it installs. A self-hosted runner needs v2.327.1 or newer for the Node 24 checkout, which the Proxmox workflow now states next to its runs-on. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: zizmor
|
|
|
|
# Tree-wide GitHub Actions security gate. Fails the PR when a workflow
|
|
# reintroduces an unpinned action or a missing/overly-broad permissions block
|
|
# (Scorecard's Pinned-Dependencies and Token-Permissions checks). The audit
|
|
# scope is pinned in .github/zizmor.yml; the same tool also runs on the PR diff
|
|
# via the pre-commit hook.
|
|
#
|
|
# Runs offline: the two gating audits are purely syntactic, so no GitHub token is
|
|
# needed and no data leaves the runner. Findings are surfaced in the job log and
|
|
# fail the step; the SARIF is intentionally NOT uploaded to code scanning, matching
|
|
# scorecard.yml — the public signal is the failing check, not a Security-tab alert.
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '.github/zizmor.yml'
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- '.github/zizmor.yml'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: zizmor-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
zizmor:
|
|
name: Audit workflows
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install zizmor
|
|
run: pipx install zizmor==1.26.1
|
|
|
|
- name: Audit workflows
|
|
run: zizmor --offline .github/workflows/
|