|
57 | 57 | required: true |
58 | 58 | workflow_dispatch: |
59 | 59 |
|
| 60 | +permissions: |
| 61 | + contents: read |
| 62 | + pull-requests: read |
| 63 | + |
60 | 64 | jobs: |
61 | 65 | commitlint: |
62 | 66 | name: Check commit messages |
63 | 67 | runs-on: ubuntu-latest |
64 | 68 | steps: |
65 | 69 | - name: Checkout |
66 | 70 | uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 71 | + with: |
| 72 | + persist-credentials: false |
67 | 73 | - name: Run commitlint |
68 | 74 | uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 |
69 | 75 | with: |
|
78 | 84 | working-directory: ${{ inputs.working-directory }} |
79 | 85 | steps: |
80 | 86 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 87 | + with: |
| 88 | + persist-credentials: false |
81 | 89 | - name: Use Node.js ${{ inputs.node-version }} with dependency path |
82 | 90 | if: ${{ inputs.working-directory != '.' }} |
83 | 91 | uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
@@ -146,6 +154,8 @@ jobs: |
146 | 154 | working-directory: ${{ inputs.working-directory }} |
147 | 155 | steps: |
148 | 156 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 157 | + with: |
| 158 | + persist-credentials: false |
149 | 159 | - name: Use Node.js ${{ inputs.node-version }} with dependency path |
150 | 160 | if: ${{ inputs.working-directory != '.' }} |
151 | 161 | uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
@@ -203,6 +213,7 @@ jobs: |
203 | 213 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
204 | 214 | with: |
205 | 215 | fetch-depth: 0 |
| 216 | + persist-credentials: false |
206 | 217 | # Coverage path logic (keep in sync with tests job's cache/save step): |
207 | 218 | # Resolves the effective directory (app-directory if set, else working-directory), |
208 | 219 | # then prefixes 'coverage' with '<dir>/' when running in a subdirectory. |
|
0 commit comments