Skip to content

Commit ef3f75d

Browse files
peter-matkovskiPeter Matkovskicursoragent
authored
CI: add least-privilege permissions to GitHub Actions workflows (#270)
Refs: APPSEC-164 Co-authored-by: Peter Matkovski <matkovski@Peters-MBP.local> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f552d7e commit ef3f75d

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
pull_request:
66
branches: [ "**" ]
77

8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
812
jobs:
913
unit:
1014
uses: ./.github/workflows/run_tests.yml

.github/workflows/run_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ env:
1515
# If set, uv will run without updating the uv.lock file. Equivalent to the `uv run --frozen`.
1616
UV_FROZEN: "1"
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
ruff:
2023
name: Ruff

0 commit comments

Comments
 (0)