Skip to content

Commit 1061b74

Browse files
Security: Remove contents:write from hypatia-dispatch-intake
The workflow is triggered by repository_dispatch events which can come from external sources. Having contents:write permission allowed arbitrary writes to the findings-submissions branch without PR review. Changed to contents:read - the workflow will now fail safely when attempting to push, preventing unauthorized external writes. Fixes: Risk of breach via external dispatch triggers Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent 8a70497 commit 1061b74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/hypatia-dispatch-intake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- hypatia-general-findings
1212

1313
permissions:
14-
contents: write
14+
contents: read
1515

1616
jobs:
1717
intake:

0 commit comments

Comments
 (0)