Skip to content

Commit fbfe779

Browse files
committed
SECCMP-1797: Downgrade contents permission from write to read
The copyright-check reusable workflow only needs contents: read to checkout code. contents: write was unnecessarily granting the workflow token write access to repository contents, which expands the blast radius of any PwnRequest-style attack. The called workflow (copyright-check.yml) already declares its own permissions block with contents: read.
1 parent 7ea79ef commit fbfe779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
name: © Validate Copyright Headers
1919
uses: marklogic/pr-workflows/.github/workflows/copyright-check.yml@main
2020
permissions:
21-
contents: write
21+
contents: read
2222
pull-requests: write
2323
issues: write

0 commit comments

Comments
 (0)