|
62 | 62 | required: false |
63 | 63 | workflow_dispatch: |
64 | 64 |
|
| 65 | +permissions: |
| 66 | + contents: read |
| 67 | + pull-requests: read |
| 68 | + |
65 | 69 | jobs: |
66 | 70 | commitlint: |
67 | 71 | name: Check commit messages |
68 | 72 | runs-on: ubuntu-latest |
69 | 73 | steps: |
70 | 74 | - name: Checkout |
71 | 75 | uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 76 | + with: |
| 77 | + persist-credentials: false |
72 | 78 | - name: Run commitlint |
73 | 79 | uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 |
74 | 80 | with: |
|
83 | 89 | working-directory: ${{ inputs.working-directory }} |
84 | 90 | steps: |
85 | 91 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 92 | + with: |
| 93 | + persist-credentials: false |
86 | 94 | - name: Use Node.js ${{ inputs.node-version }} with dependency path |
87 | 95 | if: ${{ inputs.working-directory != '.' }} |
88 | 96 | uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
@@ -151,6 +159,8 @@ jobs: |
151 | 159 | working-directory: ${{ inputs.working-directory }} |
152 | 160 | steps: |
153 | 161 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 162 | + with: |
| 163 | + persist-credentials: false |
154 | 164 | - name: Use Node.js ${{ inputs.node-version }} with dependency path |
155 | 165 | if: ${{ inputs.working-directory != '.' }} |
156 | 166 | uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 |
@@ -208,6 +218,7 @@ jobs: |
208 | 218 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
209 | 219 | with: |
210 | 220 | fetch-depth: 0 |
| 221 | + persist-credentials: false |
211 | 222 | # Coverage path logic (keep in sync with tests job's cache/save step): |
212 | 223 | # Resolves the effective directory (app-directory if set, else working-directory), |
213 | 224 | # then prefixes 'coverage' with '<dir>/' when running in a subdirectory. |
|
0 commit comments