Skip to content

Commit 71ebdd9

Browse files
Potential fix for code scanning alert no. 3: Workflow does not contain permissions (#4273)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 7604c83 commit 71ebdd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/arc-update-runners-scheduled.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
# it sets a PR name as output.
5151
check_pr:
5252
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
5355
needs: check_versions
5456
if: needs.check_versions.outputs.runner_current_version != needs.check_versions.outputs.runner_latest_version || needs.check_versions.outputs.container_hooks_current_version != needs.check_versions.outputs.container_hooks_latest_version
5557
outputs:

0 commit comments

Comments
 (0)