Skip to content

Commit 430af45

Browse files
authored
feat(gatherer): Use GitHub app instead of PAT for gatherer (#2535)
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent a4c4f80 commit 430af45

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/scm_configuration_check.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ jobs:
2929
run: |
3030
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT_NAME}
3131
32+
- name: Generate a token
33+
id: generate-token
34+
uses: actions/create-github-app-token@v2
35+
with:
36+
app-id: ${{ vars.CHAINLOOP_GATHERER_APP_ID }}
37+
private-key: ${{ secrets.GATHERER_APP_PRIVATE_KEY }}
38+
3239
- name: Gather runner context data
3340
run: |
34-
chainloop gather-runner-context --runner-token ${{ secrets.PAT_ADMIN }}
41+
chainloop gather-runner-context --runner-token ${{ steps.generate-token.outputs.token }}
3542
3643
- name: Add runner context material to attestation
3744
run: |

0 commit comments

Comments
 (0)