Skip to content

Commit 796c2aa

Browse files
Potential fix for code scanning alert no. 3: Workflow does not contain permissions (#73)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 5aa7283 commit 796c2aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/visual-regression.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
test:
1717
name: Run Tests
1818
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
1921
if: github.event.ref != 'refs/heads/main'
2022
steps:
2123
- uses: actions/checkout@v4
@@ -46,6 +48,8 @@ jobs:
4648
update:
4749
name: Update Snapshots
4850
runs-on: ubuntu-latest
51+
permissions:
52+
contents: write
4953
if: github.event.ref == 'refs/heads/main'
5054
steps:
5155
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)