|
8 | 8 | env: |
9 | 9 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
10 | 10 |
|
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
11 | 14 | jobs: |
12 | 15 | assign-to-project: |
| 16 | + permissions: |
| 17 | + repository-projects: write # for srggrs/assign-one-project-github-action to assign issues and PRs to repo project |
13 | 18 | runs-on: ubuntu-latest |
14 | 19 | name: Assign to Project |
15 | 20 | steps: |
| 21 | + |
| 22 | + - name: Harden Runner |
| 23 | + uses: step-security/harden-runner@74b568e8591fbb3115c70f3436a0c6b0909a8504 |
| 24 | + with: |
| 25 | + egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs |
| 26 | + |
16 | 27 | - name: Assign Issues to Bugs |
17 | | - uses: srggrs/assign-one-project-github-action@1.3.1 |
| 28 | + uses: srggrs/assign-one-project-github-action@4d59cc619499b55ca689fb13cfcc72324a8b8435 |
18 | 29 | if: contains(github.event.issue.labels.*.name, 'bug') |
19 | 30 | with: |
20 | 31 | project: 'https://github.com/irongut/CodeCoverageSummary/projects/1' |
21 | 32 | column_name: 'Needs triage' |
22 | 33 |
|
23 | 34 | - name: Assign Issues to Enhancements |
24 | | - uses: srggrs/assign-one-project-github-action@1.3.1 |
| 35 | + uses: srggrs/assign-one-project-github-action@4d59cc619499b55ca689fb13cfcc72324a8b8435 |
25 | 36 | if: contains(github.event.issue.labels.*.name, 'enhancement') |
26 | 37 | with: |
27 | 38 | project: 'https://github.com/irongut/CodeCoverageSummary/projects/2' |
28 | 39 | column_name: 'To do' |
29 | 40 |
|
30 | 41 | - name: Assign PRs to Bugs |
31 | | - uses: srggrs/assign-one-project-github-action@1.3.1 |
| 42 | + uses: srggrs/assign-one-project-github-action@4d59cc619499b55ca689fb13cfcc72324a8b8435 |
32 | 43 | if: contains(github.event.pull_request.labels.*.name, 'bug') |
33 | 44 | with: |
34 | 45 | project: 'https://github.com/irongut/CodeCoverageSummary/projects/1' |
35 | 46 | column_name: 'In Progress' |
36 | 47 |
|
37 | 48 | - name: Assign PRs to Enhancements |
38 | | - uses: srggrs/assign-one-project-github-action@1.3.1 |
| 49 | + uses: srggrs/assign-one-project-github-action@4d59cc619499b55ca689fb13cfcc72324a8b8435 |
39 | 50 | if: contains(github.event.pull_request.labels.*.name, 'enhancement') |
40 | 51 | with: |
41 | 52 | project: 'https://github.com/irongut/CodeCoverageSummary/projects/2' |
|
0 commit comments