Skip to content

Commit 5a69839

Browse files
committed
ci: normalize code-ranker stub (clean, least-privilege)
Signed-off-by: Roman Fedorov <Roman.Fedorov@constructor.tech>
1 parent a365ceb commit 5a69839

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/code-ranker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ on:
44
push:
55
jobs:
66
code-ranker:
7+
# Pinned to an immutable commit SHA (supply-chain hardening).
78
uses: code-ranker-com/actions/.github/workflows/report.yml@42c2fba1acd7c99a71875c8eefa171224d8e683c
89
permissions:
910
id-token: write
1011
contents: read
11-
pull-requests: write
12+
# No pull-requests: write here — the code-ranker GitHub App posts (and
13+
# updates in place) the report comment using its own installation
14+
# token, not this workflow's GITHUB_TOKEN.
1215
security-events: write

0 commit comments

Comments
 (0)