Skip to content

GitHub Actions: add separate zizmor job for security scanning #285

GitHub Actions: add separate zizmor job for security scanning

GitHub Actions: add separate zizmor job for security scanning #285

Workflow file for this run

---
name: ci
# yamllint disable-line rule:truthy
on:
push:
pull_request:
concurrency:
group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
permissions: {}
jobs:
prechecks:
uses: ./.github/workflows/pre-commit.yml
separate-zizmor:

Check failure on line 18 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 18, Col: 3): Error calling workflow 'berquist/pymolresponse/.github/workflows/zizmor.yml@732349694cec5e2169e6887562020ff855b831c0'. The nested job 'zizmor' is requesting 'actions: read, contents: read, security-events: write', but is only allowed 'actions: none, contents: none, security-events: none'.
uses: ./.github/workflows/zizmor.yml
all-prechecks:
needs: [prechecks, separate-zizmor]
runs-on: ubuntu-latest
steps:
- name: Success
run: "true"
unit-tests:
needs: [all-prechecks]
uses: ./.github/workflows/test_and_package.yml
pixi:
needs: [all-prechecks]
uses: ./.github/workflows/pixi.yml
publish:
needs: [unit-tests, pixi]
uses: ./.github/workflows/publish.yml
all:
needs: [unit-tests, pixi, publish]
runs-on: ubuntu-latest
steps:
- name: Success
run: "true"