Skip to content

Commit 0afc7a5

Browse files
committed
Add permissions to workflows
1 parent a2c032e commit 0afc7a5

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/docker-publish-multiarch-dev.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Docker Publish Dev Multiarch
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: {}
55
push:
6-
branches: master
6+
branches:
7+
- master
78

9+
permissions:
10+
contents: read
811

912
jobs:
1013
build:

.github/workflows/docker-publish-multiarch-release-custom.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Docker Publish Custom Release Multiarch
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: {}
55
inputs:
66
tagname:
77
description: 'Tag name to be built'
88
required: true
99

1010

11+
permissions:
12+
contents: read
1113

1214
jobs:
1315
build:

.github/workflows/docker-publish-multiarch-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Docker Publish Release Multiarch
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch: {}
55
release:
66
types: [released]
77

88

9+
permissions:
10+
contents: read
11+
912

1013
jobs:
1114
build:

.github/workflows/test-code.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Compile and run unit tests
22
on: [workflow_dispatch, push, pull_request]
33

4+
permissions:
5+
contents: read
46

57
jobs:
68
build:

0 commit comments

Comments
 (0)