Skip to content

Commit 3075460

Browse files
authored
Merge pull request #108 from advanced-security/alert-autofix-3
Potential fix for code scanning alert no. 3: Workflow does not contain permissions
2 parents 9605a3c + 42d52af commit 3075460

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pr-markdown.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Markdown Validation
2+
permissions:
3+
contents: read
4+
pull-requests: write
25

36
on:
47
pull_request:
@@ -25,8 +28,6 @@ jobs:
2528
token: ${{ steps.get_workflow_token.outputs.token }}
2629

2730
- name: Check git status
28-
env:
29-
GH_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
3031
run: |
3132
if [ -z "$(git status --porcelain)" ]; then
3233
gh pr comment --edit-last ${{ github.event.number }} \

0 commit comments

Comments
 (0)