File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 main :
1111 permissions :
1212 contents : read
13- pull-requests : write
13+ pull-requests : write # Required to label PRs
1414 uses : github-community-projects/ospo-reusable-workflows/.github/workflows/auto-labeler.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
1515 with :
1616 config-name : release-drafter.yml
Original file line number Diff line number Diff line change 2020 schedule :
2121 - cron : " 0 0 * * 1"
2222
23+ concurrency :
24+ group : ${{ github.workflow }}-${{ github.ref }}
25+ cancel-in-progress : true
26+
2327permissions :
2428 contents : read
2529
2832 name : Analyze
2933 runs-on : ubuntu-latest
3034 permissions :
31- actions : read
32- contents : read
33- security-events : write
35+ actions : read # Required for CodeQL analysis
36+ contents : read # Required to checkout code
37+ security-events : write # Required to upload SARIF results
3438
3539 strategy :
3640 fail-fast : false
Original file line number Diff line number Diff line change 55 schedule :
66 - cron : " 3 2 1 * *"
77
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : false
11+
812permissions :
913 contents : read
1014
1317 name : contributor report
1418 runs-on : ubuntu-latest
1519 permissions :
16- issues : write
20+ issues : write # Required to create/update issues
1721
1822 steps :
1923 - name : Harden the runner (Audit all outbound calls)
Original file line number Diff line number Diff line change 1111 paths :
1212 - .github/workflows/copilot-setup-steps.yml
1313
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
1418# Set the permissions to the lowest permissions possible needed for your steps.
1519# Copilot will be given its own token for its operations.
1620permissions :
@@ -20,6 +24,7 @@ permissions:
2024jobs :
2125 # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
2226 copilot-setup-steps :
27+ name : Copilot setup steps
2328 runs-on : ubuntu-latest
2429
2530 # You can define any steps you want, and they will run before the agent starts.
Original file line number Diff line number Diff line change 99name : " Dependency Review"
1010on : [pull_request]
1111
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : true
15+
1216permissions :
1317 contents : read
1418
1519jobs :
1620 dependency-review :
21+ name : Dependency review
1722 runs-on : ubuntu-latest
1823 steps :
1924 - name : Harden the runner (Audit all outbound calls)
Original file line number Diff line number Diff line change 77 pull_request :
88 branches : [main]
99
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
1014permissions :
1115 contents : read
1216
1317jobs :
1418 build :
19+ name : Build Docker image
1520 runs-on : ubuntu-latest
1621 steps :
1722 - name : Harden the runner (Audit all outbound calls)
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
1616 name : Mark as ready after successful checks
1717 runs-on : ubuntu-latest
1818 permissions :
19- checks : read
20- contents : write
21- pull-requests : write
22- statuses : read
19+ checks : read # Required to read check run results
20+ contents : write # Required to merge PRs
21+ pull-requests : write # Required to update PR status
22+ statuses : read # Required to read check statuses
2323 if : |
2424 contains(github.event.pull_request.labels.*.name, 'Mark Ready When Ready') &&
2525 github.event.pull_request.draft == true
Original file line number Diff line number Diff line change 1010 main :
1111 permissions :
1212 contents : read
13- pull-requests : read
14- statuses : write
13+ pull-requests : read # Required to read PR metadata
14+ statuses : write # Required to update commit statuses
1515 uses : github-community-projects/ospo-reusable-workflows/.github/workflows/pr-title.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
1616 secrets :
1717 github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ permissions:
1919
2020jobs :
2121 build :
22+ name : Build and test
2223 runs-on : ubuntu-latest
2324 strategy :
2425 matrix :
3839 version : " 0.10.9"
3940 enable-cache : true
4041 - name : Set up Python ${{ matrix.python-version }}
41- run : uv python install ${{ matrix.python-version }}
42+ env :
43+ PYTHON_VERSION : ${{ matrix.python-version }}
44+ run : uv python install "$PYTHON_VERSION"
4245 - name : Install dependencies
43- run : uv sync --frozen --python ${{ matrix.python-version }}
46+ env :
47+ PYTHON_VERSION : ${{ matrix.python-version }}
48+ run : uv sync --frozen --python "$PYTHON_VERSION"
4449 - name : Lint with flake8 and pylint
4550 run : |
4651 make lint
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ permissions:
1010jobs :
1111 release :
1212 permissions :
13- contents : write
14- pull-requests : read
13+ contents : write # Required to create releases
14+ pull-requests : read # Required to read PR metadata
1515 uses : github-community-projects/ospo-reusable-workflows/.github/workflows/release.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
1616 with :
1717 publish : true
@@ -21,10 +21,10 @@ jobs:
2121 release_image :
2222 needs : release
2323 permissions :
24- contents : read
25- packages : write
26- id-token : write
27- attestations : write
24+ contents : read # Required to read repository contents
25+ packages : write # Required to publish container images
26+ id-token : write # Required for OIDC token signing
27+ attestations : write # Required to create build attestations
2828 uses : github-community-projects/ospo-reusable-workflows/.github/workflows/release-image.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
2929 with :
3030 image-name : ${{ github.repository }}
3838 release_discussion :
3939 needs : release
4040 permissions :
41- contents : read
42- discussions : write
41+ contents : read # Required to read repository contents
42+ discussions : write # Required to create release discussions
4343 uses : github-community-projects/ospo-reusable-workflows/.github/workflows/release-discussion.yaml@3b691dff6b68489c8548e1295d125c93c9c29a4e
4444 with :
4545 full-tag : ${{ needs.release.outputs.full-tag }}
You can’t perform that action at this time.
0 commit comments