Skip to content

Commit 645394d

Browse files
committed
Add permissions to GitHub actions
1 parent b874697 commit 645394d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Build
2+
permissions:
3+
contents: read
24
on:
35
push:
46
branches:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Release
2+
permissions:
3+
contents: read
24
on:
35
push:
46
tags:
@@ -72,6 +74,8 @@ jobs:
7274
run: jfrog rt build-promote ${{ format('initializr-{0}', needs.build-and-stage-release.outputs.version)}} ${{ github.run_number }} libs-release-local
7375
create-github-release:
7476
name: Create GitHub Release
77+
permissions:
78+
contents: write
7579
needs:
7680
- build-and-stage-release
7781
- promote-release

0 commit comments

Comments
 (0)