Skip to content

Commit 99894fb

Browse files
authored
Merge pull request #55 from trimble-oss/alert-autofix-262
Potential fix for code scanning alert no. 262: Workflow does not contain permissions
2 parents 9c59e6e + 68f4b7b commit 99894fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Check/Format PR
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
branches: [ main ]
@@ -12,6 +15,8 @@ jobs:
1215
format:
1316
name: Format PR
1417
if: github.event.pull_request.head.repo.full_name == github.repository
18+
permissions:
19+
contents: write
1520
runs-on: ubuntu-22.04
1621
steps:
1722
- name: Setup Go 1.x

0 commit comments

Comments
 (0)