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