Skip to content

Commit 913ed5f

Browse files
authored
Adding permissions tag for Github Actions workflows (#4)
1 parent ecdcab6 commit 913ed5f

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/docker-image-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ on:
22
push:
33
branches: dev
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
main:
710
runs-on: ubuntu-latest

.github/workflows/docker-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
on:
22
workflow_dispatch:
33

4+
permissions:
5+
# Write permission needed for creating a tag.
6+
contents: write
7+
48
jobs:
59
main:
610
runs-on: ubuntu-latest

.github/workflows/python-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
release:
88
types: [created]
99

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

.github/workflows/tests.yml

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

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
deploy:
710

0 commit comments

Comments
 (0)