-
Notifications
You must be signed in to change notification settings - Fork 254
57 lines (52 loc) · 1.46 KB
/
github-actions.yml
File metadata and controls
57 lines (52 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: GitHub Actions
on:
push:
branches:
- main
- v*
paths:
- ".github/workflows/**"
- ".github/composite-actions/**"
- ".github/dependabot.yml"
- "**/action.yml"
- "**/action.yaml"
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
- v*
paths:
- ".github/workflows/**"
- ".github/composite-actions/**"
- ".github/dependabot.yml"
- "**/action.yml"
- "**/action.yaml"
merge_group:
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
zizmor:
name: zizmor
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
advanced-security: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
annotations: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}