mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
👷 Improve workflows for private repos (#2394)
This commit is contained in:
committed by
GitHub
parent
78c699079e
commit
daae6e1434
@@ -15,6 +15,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -23,3 +25,6 @@ jobs:
|
||||
persist-credentials: false
|
||||
- name: Run zizmor
|
||||
uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7
|
||||
with:
|
||||
advanced-security: ${{ github.repository_owner == 'fastapi' }}
|
||||
annotations: ${{ github.repository_owner != 'fastapi' }}
|
||||
|
||||
Reference in New Issue
Block a user