Skip to content

Commit 974f2c5

Browse files
committed
update workflow permissions (#1147)
1 parent c7948d6 commit 974f2c5

6 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/gosec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
# # This is meant to run every day at 8am
55
- cron: '0 8 * * 1-5'
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
gosec:
912
runs-on: ubuntu-latest

.github/workflows/license-check.yaml

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

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

.github/workflows/publish-docker-images.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ on:
2828
type: boolean
2929
default: false
3030

31+
permissions:
32+
contents: read
33+
packages: write
34+
3135
jobs:
3236
build-and-push-image:
3337
name: Build and Push Docker Image
3438
runs-on: ubuntu-22.04
3539

36-
permissions:
37-
contents: read
38-
packages: write
39-
4040
environment: ${{ inputs.environment }}
4141
steps:
4242

.github/workflows/test-e2e.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: E2E Tests
22

33
on:
44
workflow_call:
5+
6+
permissions:
7+
contents: read
58

69
jobs:
710
build-docker-image:

.github/workflows/test-rosetta.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ on:
1111
required: true
1212
type: string
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
run-solo-tests:
1619
name: Run Solo e2e Tests
1720
runs-on: ubuntu-latest
18-
permissions:
19-
contents: read
2021
env:
2122
THOR_REPO: ${{ inputs.thor_repo }}
2223
THOR_VERSION: ${{ inputs.thor_version }}

.github/workflows/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
CODECOV_TOKEN:
88
required: false
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
unit_tests:
1215
strategy:

0 commit comments

Comments
 (0)