Skip to content

Commit 932a240

Browse files
authored
Merge pull request #638 from openconfig/workflow-permissions
add workflow permissions
2 parents 1019041 + 79d02f1 commit 932a240

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ env:
2121
jobs:
2222
publish:
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: write
26+
2427
steps:
2528
- uses: actions/checkout@v4
2629
- run: docker run -v $(pwd):/docs --entrypoint ash squidfunk/mkdocs-material:${MKDOCS_MATERIAL_VER} -c 'git config --global --add safe.directory /docs; mkdocs gh-deploy --force --strict'

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030

3131
release:
3232
runs-on: ubuntu-22.04
33+
permissions:
34+
contents: write
35+
packages: write
36+
3337
needs:
3438
- test
3539
steps:
@@ -51,6 +55,6 @@ jobs:
5155
uses: goreleaser/goreleaser-action@v6
5256
with:
5357
version: ${{ env.GORELEASER_VER }}
54-
args: release --rm-dist
58+
args: release --rm-dist --debug
5559
env:
5660
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)