Skip to content

Commit e52c276

Browse files
committed
Adding specific workflow permissions
1 parent 41ccda2 commit e52c276

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ env:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618
steps:
1719
- uses: actions/checkout@v4
1820
with:

.github/workflows/publish.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ env:
1111
jobs:
1212
publish:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
1416
outputs:
1517
version: ${{ steps.setup_version.outputs.version }}
1618
steps:
@@ -42,12 +44,12 @@ jobs:
4244
azuredeploy.bicep
4345
4446
deploy:
45-
environment: production
47+
runs-on: ubuntu-latest
4648
needs: publish
4749
permissions:
48-
id-token: write
4950
contents: read
50-
runs-on: ubuntu-latest
51+
id-token: write
52+
environment: production
5153
steps:
5254
- name: Azure Login
5355
uses: azure/login@v2

0 commit comments

Comments
 (0)