File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ permissions:
1212jobs :
1313 dependabot-changie :
1414 runs-on : ubuntu-latest
15- if : github.actor == 'dependabot[bot]'
15+ if : github.event.pull_request.user.login == 'dependabot[bot]'
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
Original file line number Diff line number Diff line change 1+ name : Pinact
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["**"]
8+ paths :
9+ - " .github/workflows/**"
10+ - " .github/actions/**"
11+
12+ permissions : {}
13+
14+ jobs :
15+ pinact :
16+ # Only run on pull requests from the same repository
17+ if : github.event.pull_request.head.repo.full_name == github.repository
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+ with :
25+ persist-credentials : false
26+
27+ - name : Pin actions
28+ uses : suzuki-shunsuke/pinact-action@cf51507d80d4d6522a07348e3d58790290eaf0b6 # v2.0.0
29+ with :
30+ skip_push : true
31+ verify : true
32+ min_age : 7
Original file line number Diff line number Diff line change 1515 uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
1616 with :
1717 go-version-file : go.mod
18+ cache : false
1819
1920 - name : Import GPG key
2021 id : import_gpg
Original file line number Diff line number Diff line change 1818 uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
1919 with :
2020 go-version-file : go.mod
21+ cache : false
2122
2223 - name : golangci-lint
2324 continue-on-error : true
Original file line number Diff line number Diff line change 1+ name : Zizmor
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["**"]
8+ paths :
9+ - " .github/workflows/**"
10+ - " .github/actions/**"
11+
12+ permissions : {}
13+
14+ jobs :
15+ zizmor :
16+ name : Run zizmor
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ actions : read
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+ with :
25+ persist-credentials : false
26+
27+ - name : Run zizmor
28+ uses : zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
29+ with :
30+ advanced-security : false
31+ annotations : true
32+ min-severity : high
You can’t perform that action at this time.
0 commit comments