Skip to content

Commit 97f9bb1

Browse files
authored
Merge pull request #654 from CycloneDX/chore/gh-workflow-permissions
2 parents 5a0f385 + f3eadea commit 97f9bb1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@ name: Maven Publish Snapshot
22

33
on: [workflow_dispatch]
44

5+
permissions: {}
6+
57
jobs:
68
build:
79

810
runs-on: ubuntu-latest
911

12+
permissions:
13+
contents: write # for git-push after version modifications
14+
1015
steps:
1116
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
1217
- name: Set up JDK 8

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
default: false
1010
type: boolean
1111

12+
permissions: {}
13+
1214
jobs:
1315
build:
1416
runs-on: ubuntu-latest
1517

1618
permissions:
17-
contents: write
19+
contents: write # for git-push after version modifications
1820

1921
steps:
2022
- name: Checkout code

0 commit comments

Comments
 (0)