Skip to content

Commit 005afb7

Browse files
Updated github workflow permissions
1 parent d195c5c commit 005afb7

7 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/create-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
required: true
1515
default: false
1616

17+
permissions:
18+
contents: write
19+
1720
env:
1821
ALLOW_PRERELEASE: ${{ startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix/') }}
1922

.github/workflows/format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
branches:
1414
- main
1515
- develop
16+
-
17+
permissions:
18+
contents: write
1619

1720
env:
1821
DOTNET_VERSION: '9.0.x'

.github/workflows/issue-branch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
pull_request:
1313
types: [ opened, closed ]
1414

15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
1519
jobs:
1620
create_issue_branch_job:
1721
runs-on: ubuntu-latest

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ env:
1414
BUILD_CONFIGURATION: ''
1515
VERSION_SUFFIX: ''
1616

17+
permissions:
18+
contents: write
19+
packages: write
20+
actions: read
21+
1722
jobs:
1823
build-publish:
1924
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
- main
1515
- develop
1616

17+
permissions:
18+
contents: read
19+
actions: read
20+
1721
env:
1822
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1923
SOLUTION_NAME: ${{ vars.SOLUTION_NAME }}

.github/workflows/unlist-nuget.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88
env:
99
BRANCH_NAME: ${{ github.event.release.target_commitish }}
1010
PROJECT_NAME: ${{ vars.PROJECT_NAME }}
11-
11+
12+
permissions:
13+
contents: write
14+
1215
jobs:
1316
publish:
1417
name: unlist on nuget

.github/workflows/update-version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
required: true
1414
default: 'patch'
1515

16+
permissions:
17+
contents: write
18+
actions: read
19+
1620
env:
1721
ALLOW_UPDATES: ${{ startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix/') }}
1822

0 commit comments

Comments
 (0)