Skip to content

Commit c7edeb5

Browse files
committed
Add permissions section to workflows for content access
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
1 parent 4cec89b commit c7edeb5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build-and-publish.yml

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

11+
permissions:
12+
contents: read
13+
packages: write
1114

1215
env:
1316
dockerhub: ${{ secrets.DOCKERHUB_NAMESPACE }}/pihole

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build Image and Test
22
on:
33
pull_request:
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build-and-test:
710
runs-on: ${{ matrix.runner }}

0 commit comments

Comments
 (0)