Skip to content

Commit d17c7b3

Browse files
chore(ci): migrate package_chart workflow to GitHub keyless auth
Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
1 parent 3decc9d commit d17c7b3

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/package_chart.yaml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,18 @@ on:
88
paths:
99
- deployment/chainloop/**
1010

11-
permissions:
12-
contents: read
11+
permissions: read-all
1312

1413
jobs:
15-
# This reusable workflow inspects if the given workflow_name exists on Chainloop. If the Workflow does not exist
16-
# it will create one with an empty contract ready for operators to be filled. Otherwise, if found, it will just
17-
# be ignored and the process will continue. For this to work it's using a pre-created API Token
18-
onboard_workflow:
19-
name: Onboard Chainloop Workflow
20-
uses: chainloop-dev/labs/.github/workflows/chainloop_onboard.yml@5344787a72876bd22e199b94c09a86532521b4b3
21-
with:
22-
project: "chainloop"
23-
workflow_name: "helm-package"
24-
secrets:
25-
api_token: ${{ secrets.CHAINLOOP_TOKEN }}
26-
2714
package:
2815
name: Package and push Helm Chart
2916
runs-on: ubuntu-latest
30-
needs: onboard_workflow
3117
permissions:
3218
packages: write
3319
id-token: write # required for SLSA provenance - https://docs.chainloop.dev/guides/slsa/
3420
env:
35-
CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }}
36-
CHAINLOOP_WORKFLOW_NAME: ${{ needs.onboard_workflow.outputs.workflow_name }}
37-
CHAINLOOP_PROJECT: ${{ needs.onboard_workflow.outputs.project_name }}
21+
CHAINLOOP_WORKFLOW_NAME: "helm-package"
22+
CHAINLOOP_PROJECT: "chainloop"
3823
steps:
3924
- name: Install Chainloop
4025
run: |

0 commit comments

Comments
 (0)