Skip to content

Commit 0f24cc6

Browse files
Update workflow permissions (#91)
* Add missing workflow permissions
1 parent 6a40a7e commit 0f24cc6

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/admin-cleanup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
del_runs:
4848
name: Delete Runs
4949
runs-on: ubuntu-latest
50+
permissions:
51+
actions: write
52+
contents: read
5053
steps:
5154
- name: Delete CI workflow runs
5255
uses: Mattraks/delete-workflow-runs@v2

.github/workflows/project-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- 'feature/**'
66
- 'bugfix/**'
77

8+
permissions:
9+
contents: read
10+
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.ref }}
1013
cancel-in-progress: true

.github/workflows/project-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
name: VS Marketplace Release
6060
runs-on: windows-2022
6161
needs: build
62+
permissions: {}
6263
if: ${{ github.ref_type == 'tag' }}
6364

6465
env:

.github/workflows/shared-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Shared Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:

0 commit comments

Comments
 (0)