You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
---
2
2
name: "CI"
3
3
4
+
permissions:
5
+
contents: read
6
+
4
7
on:
5
8
push:
6
9
branches:
@@ -35,6 +38,8 @@ jobs:
35
38
test:
36
39
name: Test
37
40
runs-on: ubuntu-24.04
41
+
permissions:
42
+
contents: write
38
43
steps:
39
44
- name: Checkout the repository
40
45
uses: actions/checkout@v4
@@ -91,3 +96,23 @@ jobs:
91
96
name: vuln-scan-results
92
97
path: vulns.json
93
98
if-no-files-found: error
99
+
finalizer:
100
+
# This gives us something to set as required in the repo settings. Some projects use dynamic fan-outs using matrix strategies and the fromJSON function, so
101
+
# you can't hard-code what _should_ run vs not. Having a finalizer simplifies that so you can just check that the finalizer succeeded, and if so, your
Copy file name to clipboardExpand all lines: {{cookiecutter.project_name|replace(" ", "")}}/.github/workflows/ci.yml
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
---
2
2
name: CI
3
3
4
+
permissions:
5
+
contents: read
6
+
4
7
on:
5
8
pull_request:
6
9
branches: [main]
@@ -16,6 +19,8 @@ jobs:
16
19
test:
17
20
name: Test
18
21
runs-on: ubuntu-24.04
22
+
permissions:
23
+
contents: write
19
24
steps:
20
25
- name: Checkout the repository
21
26
uses: actions/checkout@v4
@@ -116,3 +121,24 @@ jobs:
116
121
name: vulns-${{ "{{ env.SANITIZED_PLATFORM }}" }}
117
122
path: vulns.*.json
118
123
if-no-files-found: error
124
+
finalizer:
125
+
# This gives us something to set as required in the repo settings. Some projects use dynamic fan-outs using matrix strategies and the fromJSON function, so
126
+
# you can't hard-code what _should_ run vs not. Having a finalizer simplifies that so you can just check that the finalizer succeeded, and if so, your
0 commit comments