Skip to content

Commit bb03257

Browse files
committed
🔒 Give initial script enough permissions for subscripts
1 parent 16a40a2 commit bb03257

File tree

7 files changed

+53
-7
lines changed

7 files changed

+53
-7
lines changed

.github/workflows/build_C-PAC.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Build C-PAC image
22

3-
permissions: read-all
3+
permissions:
4+
checks: write
5+
contents: read
6+
deployments: write
7+
issues: write
8+
packages: write
9+
pull-requests: write
10+
statuses: write
411

512
on:
613
workflow_call:

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
name: Build and test C-PAC
1818

1919
permissions:
20+
checks: write
2021
contents: read
22+
deployments: write
23+
issues: write
2124
packages: write
22-
pull-requests: read
25+
pull-requests: write
26+
statuses: write
2327

2428
on:
2529
workflow_call:

.github/workflows/deploy_to_Docker_Hub.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Deploy to Docker Hub
22

3-
permissions: read-all
3+
permissions:
4+
checks: write
5+
contents: read
6+
deployments: write
7+
issues: write
8+
packages: write
9+
pull-requests: write
10+
statuses: write
411

512
on:
613
workflow_call:

.github/workflows/on_push.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
1717
name: Build and test C-PAC
1818

19-
permissions: read-all
19+
permissions:
20+
checks: write
21+
contents: read
22+
deployments: write
23+
issues: write
24+
packages: write
25+
pull-requests: write
26+
statuses: write
2027

2128
on:
2229
push:

.github/workflows/regression_test_full.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Run Regression Full Test
22

3-
permissions: read-all
3+
permissions:
4+
checks: write
5+
contents: read
6+
deployments: write
7+
issues: write
8+
packages: write
9+
pull-requests: write
10+
statuses: write
411

512
on:
613
workflow_call:

.github/workflows/regression_test_lite.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Launch lite regression test
22

3-
permissions: read-all
3+
permissions:
4+
checks: write
5+
contents: read
6+
deployments: write
7+
issues: write
8+
packages: write
9+
pull-requests: write
10+
statuses: write
411

512
on:
613
pull_request:

.github/workflows/smoke_test_participant.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
1717
name: Run participant smoke test
1818

19-
permissions: read-all
19+
permissions:
20+
checks: write
21+
contents: read
22+
deployments: write
23+
issues: write
24+
packages: write
25+
pull-requests: write
26+
statuses: write
2027

2128
on:
2229
workflow_call:

0 commit comments

Comments
 (0)