|
21 | 21 | - name: Checkout |
22 | 22 | uses: actions/checkout@v4 |
23 | 23 |
|
| 24 | + - name: Get token to access private repositories |
| 25 | + uses: actions/create-github-app-token@v1 |
| 26 | + id: app-token |
| 27 | + with: |
| 28 | + app-id: ${{ vars.ACTIONS_APP_ID }} |
| 29 | + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} |
| 30 | + repositories: cloudserverclient |
| 31 | + |
24 | 32 | - uses: actions/setup-node@v4 |
25 | 33 | with: |
26 | 34 | node-version: '22' |
|
54 | 62 | tags: ghcr.io/${{ github.repository }}/syntheticbucketd:${{ github.sha }} |
55 | 63 | cache-from: type=gha,scope=syntheticbucketd |
56 | 64 | cache-to: type=gha,mode=max,scope=syntheticbucketd |
| 65 | + secrets: | |
| 66 | + npmtoken=${{ steps.app-token.outputs.token }} |
57 | 67 |
|
58 | 68 | - name: Build and push MongoDB |
59 | 69 | uses: docker/build-push-action@v6 |
|
70 | 80 | - name: Checkout |
71 | 81 | uses: actions/checkout@v4 |
72 | 82 |
|
| 83 | + - name: Get token to access private repositories |
| 84 | + uses: actions/create-github-app-token@v1 |
| 85 | + id: app-token |
| 86 | + with: |
| 87 | + app-id: ${{ vars.ACTIONS_APP_ID }} |
| 88 | + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} |
| 89 | + repositories: cloudserverclient |
| 90 | + |
73 | 91 | - uses: actions/setup-node@v4 |
74 | 92 | with: |
75 | 93 | node-version: '22' |
@@ -128,12 +146,24 @@ jobs: |
128 | 146 | steps: |
129 | 147 | - name: Checkout |
130 | 148 | uses: actions/checkout@v4 |
| 149 | + |
| 150 | + - name: Get token to access private repositories |
| 151 | + uses: actions/create-github-app-token@v1 |
| 152 | + id: app-token |
| 153 | + with: |
| 154 | + app-id: ${{ vars.ACTIONS_APP_ID }} |
| 155 | + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} |
| 156 | + repositories: cloudserverclient |
| 157 | + |
131 | 158 | - uses: actions/setup-node@v4 |
132 | 159 | with: |
133 | 160 | node-version: '22' |
134 | 161 | cache: yarn |
| 162 | + |
135 | 163 | - name: Install node dependencies |
136 | 164 | run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1 |
| 165 | + env: |
| 166 | + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |
137 | 167 | - name: Lint markdown |
138 | 168 | run: yarn run --silent lint_md |
139 | 169 | - name: Lint Javascript |
@@ -227,12 +257,24 @@ jobs: |
227 | 257 | steps: |
228 | 258 | - name: Checkout |
229 | 259 | uses: actions/checkout@v4 |
| 260 | + |
| 261 | + - name: Get token to access private repositories |
| 262 | + uses: actions/create-github-app-token@v1 |
| 263 | + id: app-token |
| 264 | + with: |
| 265 | + app-id: ${{ vars.ACTIONS_APP_ID }} |
| 266 | + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} |
| 267 | + repositories: cloudserverclient |
| 268 | + |
230 | 269 | - uses: actions/setup-node@v4 |
231 | 270 | with: |
232 | 271 | node-version: '22' |
233 | 272 | cache: yarn |
| 273 | + |
234 | 274 | - name: Install node dependencies |
235 | 275 | run: yarn install --ignore-engines --frozen-lockfile --network-concurrency 1 |
| 276 | + env: |
| 277 | + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |
236 | 278 | - name: Login to Registry |
237 | 279 | uses: docker/login-action@v3 |
238 | 280 | with: |
|
0 commit comments