Skip to content
6 changes: 6 additions & 0 deletions .github/workflows/peribolos-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
type: boolean
default: false

permissions:
contents: read

concurrency:
group: peribolos-apply
cancel-in-progress: false
Expand All @@ -32,6 +35,8 @@ jobs:
steps:
- name: Checkout complytime/.github repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
Expand All @@ -48,6 +53,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: kubernetes-sigs/prow
persist-credentials: false

- name: Build peribolos
if: >-
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/peribolos-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- cron: '30 4 * * 1'
workflow_dispatch:

permissions:
contents: read

jobs:
detect-drift:
if: github.repository_owner == 'complytime'
Expand All @@ -25,6 +28,8 @@ jobs:
steps:
- name: Checkout complytime/.github repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
Expand All @@ -38,6 +43,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: kubernetes-sigs/prow
persist-credentials: false

- name: Build peribolos
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/peribolos-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
project:
name: Verify peribolos
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: './go.mod'
Expand All @@ -27,4 +32,4 @@ jobs:
go test ./...

- name: Install yamllint and check peribolos.yaml
run: pip install yamllint && yamllint peribolos.yaml
run: pip install yamllint==1.38.0 && yamllint peribolos.yaml
11 changes: 11 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# zizmor configuration — https://docs.zizmor.sh/configuration/
#
# Peribolos manages the entire complytime GitHub org (membership, teams,
# repos), so its GitHub App token intentionally has org-wide scope.
# The github-app audit flags this as dangerous, but scoping the token
# to individual repositories would break peribolos' core functionality.
rules:
github-app:
ignore:
- peribolos-apply.yml
- peribolos-drift.yml
Loading