mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-12 16:15:14 +00:00
- backend-release checks the tag and the release separately and publishes only when it created the release in this run. A run that pushed the tag and then failed to create the release used to skip both on re-run. - pypi-publish accepts a `target` from callers (default pypi) so the reusable-workflow path can be rehearsed against TestPyPI; the TestPyPI job skips files that already exist there. - A temporary workflow, to be removed before merge, calls pypi-publish the way backend-release does, aimed at TestPyPI, on this pull request: PyPI verifies the job_workflow_ref claim, which names the called file, so the run proves the trusted-publishing path through workflow_call. - zizmor-action v0.6.3: the pinned v0.5.2 bundles zizmor 1.23, which cannot parse the `uses: $/...` self-repository syntax and aborted the audit.
26 lines
595 B
YAML
26 lines
595 B
YAML
name: GitHub Actions Security Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: ["master"]
|
|
pull_request:
|
|
branches: ["**"]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
zizmor:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run zizmor 🌈
|
|
uses: zizmorcore/zizmor-action@70fb788f84895a7701f5643d103d587e460b5c99 # v0.6.3
|