chore(ci): restrict token permissions (#7470)

Replace read-all with contents:read and add explicit permissions to
follow principle of least privilege.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
Ville Vesilehto
2025-08-25 23:08:21 +03:00
committed by GitHub
parent 5720d3ca7d
commit 9f7cc58d67
4 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,11 @@
name: golangci-lint
on:
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint