Skip to content

Commit f794d98

Browse files
fix: Workflows missing permissions (#4382)
* Potential fix for code scanning alert no. 42: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 2: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 205036e commit f794d98

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/_purge_cdn.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
purge:
1313
name: Purge the cdn to refresh cache
14+
permissions: {}
1415
runs-on: ubuntu-latest
1516
environment: ${{ inputs.environment }}
1617
env:

.github/workflows/_setup.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
description: 'Package tag'
2020
value: ${{ jobs.variables.outputs.tag }}
2121

22+
permissions:
23+
contents: read
24+
2225
env:
2326
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2427

0 commit comments

Comments
 (0)