Skip to content

Commit 2021837

Browse files
committed
trigger aggregator wf using app token
On-behalf-of: @SAP angel.kafazov@sap.com Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
1 parent 59a0024 commit 2021837

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pipeline-service-component.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
- name: Check out the repo
3535
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3636

37+
- name: Create Github App Token
38+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
39+
id: app-token
40+
with:
41+
app-id: "1415820"
42+
private-key: ${{ secrets.PM_PUBLISHER_PRIVATE_KEY }}
43+
owner: ${{ github.repository_owner }}
44+
3745
- name: Setup OCM CLI
3846
run: |
3947
REPO=${repo:=open-component-model/ocm}
@@ -65,7 +73,7 @@ jobs:
6573
- type: Credentials
6674
properties:
6775
username: github
68-
password: ${{ secrets.GITHUB_TOKEN }}
76+
password: ${{ steps.app-token.outputs.token }}
6977
EOF
7078
7179
- name: Determine image component name
@@ -120,4 +128,4 @@ jobs:
120128
run: |
121129
gh workflow run ocm.yaml --repo "platform-mesh/ocm"
122130
env:
123-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)