Skip to content

Commit b441d84

Browse files
seebeesAdnaneKhan
andauthored
chore: : scope down GitHub Token permissions (#786)
* ci: scope down permissions for repo-sync.yml * ci: scope down permissions for daily_ci.yml * ci: scope down permissions for ci_test-vector-handler.yaml * ci: scope down permissions for ci_decrypt-oracle.yaml * ci: scope down permissions for ci_tests.yaml * ci: scope down permissions for ci_static-analysis.yaml --------- Co-authored-by: Adnan Khan <AdnaneKhan@users.noreply.github.com>
1 parent d316a18 commit b441d84

6 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci_decrypt-oracle.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Continuous Integration tests for the decrypt oracle
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
tests:
811
runs-on: ubuntu-latest

.github/workflows/ci_static-analysis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Static analysis checks
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
analysis:
811
runs-on: ubuntu-latest

.github/workflows/ci_test-vector-handler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
INTEG_AWS_SECRET_ACCESS_KEY:
1010
required: true
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
tests:
1417
# Leaving this defined but disabled

.github/workflows/ci_tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ env:
1313
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: |
1414
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
1515
16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
tests:
1821
runs-on: ${{ matrix.os }}

.github/workflows/daily_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
schedule:
66
- cron: "00 15 * * 1-5"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
codebuild_batch:
1013
# Don't run the cron builds on forks

.github/workflows/repo-sync.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Repo Sync
33
on:
44
workflow_dispatch: # allows triggering this manually through the Actions UI
55

6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
610
jobs:
711
repo-sync:
812
name: Repo Sync

0 commit comments

Comments
 (0)