Skip to content

Commit 538bdcd

Browse files
authored
chore(ci): update permission (#2247)
* chore(ci): update permission Signed-off-by: Alex Chi <[email protected]> * allow contents write Signed-off-by: Alex Chi <[email protected]>
1 parent 3a7aa3d commit 538bdcd

File tree

7 files changed

+126
-83
lines changed

7 files changed

+126
-83
lines changed

.github/workflow-template/main-cron.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ name: CI (main-cronjob)
55
on:
66
# Triggers the workflow everyday 00:00
77
schedule:
8-
- cron: '0 0 * * *'
8+
- cron: "0 0 * * *"
99

1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
1212

13+
permissions: write-all
14+
1315
jobs:
1416
start-runner-c:
1517
name: ec2-start-c
@@ -57,4 +59,3 @@ jobs:
5759
label: ${{ needs.start-runner-c.outputs.label }}
5860
ec2-instance-id: ${{ needs.start-runner-c.outputs.ec2-instance-id }}
5961
if: ${{ always() }}
60-

.github/workflow-template/main-override.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
1414

15+
permissions:
16+
id-token: write
17+
contents: write
18+
1519
jobs:
1620
start-runner-c:
1721
name: ec2-start-c

.github/workflow-template/pr-override.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ on:
1212
concurrency:
1313
group: environment-${{ github.ref }}
1414
cancel-in-progress: true
15+
16+
permissions:
17+
id-token: write
18+
contents: read # This is required for actions/checkout

.github/workflow-template/template.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ env:
1616
AWS_ROLE_TO_ASSUME: arn:aws:iam::639303875316:role/Create-IAM-Role-for-Configure-AWS-Credentials-Role-1NF1LWROB80QG
1717

1818
permissions:
19-
id-token: write
20-
contents: read # This is required for actions/checkout
2119

2220
jobs:
2321
# Start 2 runners (a/b) to run build and test in parallel. Note that we also have runner C in main for release build.

.github/workflows/main-cron.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name: CI (main-cronjob)
99
on:
1010
schedule:
11-
- cron: '0 0 * * *'
11+
- cron: "0 0 * * *"
1212
workflow_dispatch:
1313
env:
1414
RUST_TOOLCHAIN: nightly-2022-04-09
@@ -20,9 +20,7 @@ env:
2020
RUSTFLAGS: -D warnings
2121
PROTOC_NO_VENDOR: true
2222
AWS_ROLE_TO_ASSUME: arn:aws:iam::639303875316:role/Create-IAM-Role-for-Configure-AWS-Credentials-Role-1NF1LWROB80QG
23-
permissions:
24-
id-token: write
25-
contents: read
23+
permissions: write-all
2624
jobs:
2725
start-runner-a:
2826
name: ec2-start-a

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env:
2424
AWS_ROLE_TO_ASSUME: arn:aws:iam::639303875316:role/Create-IAM-Role-for-Configure-AWS-Credentials-Role-1NF1LWROB80QG
2525
permissions:
2626
id-token: write
27-
contents: read
27+
contents: write
2828
jobs:
2929
start-runner-a:
3030
name: ec2-start-a

src/frontend/test_runner/tests/testdata/tpch.yaml

Lines changed: 112 additions & 74 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)