Skip to content

Commit 00e42d5

Browse files
committed
add permissions to workflows
1 parent c8989e2 commit 00e42d5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-container.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Build and push container
32
on:
43
push:
@@ -7,6 +6,10 @@ on:
76
- prod
87
- staging
98
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
docker:
1215
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
docker:
1114
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)