Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/actionci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
type: boolean
default: true
zizmor-advanced-security:
description: Upload zizmor results to GitHub Advanced Security
description: Upload zizmor results to GitHub Advanced Security. Leave unset to auto-enable for public repos, or set to "true"/"false" to override.
required: false
type: boolean
default: false
type: string
default: ""

permissions:
contents: read
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ concurrency:
cancel-in-progress: true

jobs:
actionlint:
name: Lint GitHub workflows
uses: ./.github/workflows/actionlint.yml

zizmor:
name: Scan GitHub workflows
uses: ./.github/workflows/zizmor.yml

frizbee:
name: Check action pinning
uses: ./.github/workflows/frizbee.yml
actionci:
uses: ./.github/workflows/actionci.yml
permissions:
contents: read
security-events: write

lint-dummy-app: # NOTE(@azazeal): this check is here to verify that .golangci.yml is valid
name: Lint dummy app
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
workflow_call:
inputs:
advanced-security:
description: Upload results to GitHub Advanced Security
type: boolean
default: false
description: Upload results to GitHub Advanced Security. Leave unset to auto-enable for public repos, or set to "true"/"false" to override.
type: string
default: ""

jobs:
zizmor:
Expand All @@ -20,4 +20,4 @@ jobs:
with:
min-severity: medium
min-confidence: medium
advanced-security: ${{ inputs.advanced-security }}
advanced-security: ${{ (inputs.advanced-security == '' && github.repository_visibility == 'public') || inputs.advanced-security == 'true' }}