Skip to content

Commit 18bbfce

Browse files
Potential fix for code scanning alert no. 2: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent de1b184 commit 18bbfce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/Benchmarks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ name: Benchmarks
55
on:
66
workflow_call: # this is called from CreateRelease.yml
77

8+
permissions:
9+
contents: read
10+
packages: read
11+
812
# The reason for default shell bash is because on our self-hosted windows runners,
913
# the default shell is powershell, which doesn't work correctly together with `just` commands.
1014
# Even if a command inside a just-recipe fails, github reports the step as successful.

0 commit comments

Comments
 (0)