Skip to content

Commit d1acb39

Browse files
committed
Add permissions to GH workflows
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 068b5a1 commit d1acb39

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/analyze-istio.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: analyze-istio
22

33
on:
44
workflow_dispatch:
5-
pull_request:
65
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
permissions:
11+
contents: read
712

813
jobs:
914
check-istio:

.github/workflows/e2e.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches: [ '*' ]
77
tags-ignore: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
kubernetes:
1114
runs-on: ubuntu-latest
@@ -42,7 +45,7 @@ jobs:
4245
kubectl -n prod rollout status deployment/backend --timeout=1m
4346
- name: List Flux managed objects
4447
run: |
45-
flux tree ks flux-system
48+
flux get all --all-namespaces
4649
- name: Test canary release
4750
run: |
4851
kubectl -n prod set image deployment/backend backend=ghcr.io/stefanprodan/podinfo:6.1.1

.github/workflows/update-istio.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- 'main'
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
check-istio:
1316
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)