Files
UA-.NETStandard/.github
Marc Schier 30495fb6f0 [security] buildandtest.yml: add workflow-scoped permissions: contents: read
Add an explicit top-level "permissions:" block. Without it the workflow
inherited the repository's default GITHUB_TOKEN scopes — typically
contents: write, packages: write, etc. on push events — none of which
a build-and-test workflow needs. Least-privilege per SecCab-LeastPrivilege.

Block placed between "on:" and "concurrency:" so it scopes the whole
workflow (no individual job needs an override). Mirrors the scope used
by the new .github/workflows/stress-test.yml. No CI semantics change —
all jobs still run.
2026-06-11 09:53:59 +02:00
..