File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1919 id-token : write
2020 contents : read
2121 steps :
22+ - name : Configure AWS credentials
23+ uses : aws-actions/configure-aws-credentials@v4
24+ with :
25+ role-to-assume : arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk
26+ aws-region : us-west-2
27+
28+ - name : Get app private key from SSM and apply mask
29+ id : app-private-key
30+ shell : bash
31+ run : |
32+ aws ssm get-parameter --name /github/app/CBMyFrontDesk/private-key --output text --with-decryption --query Parameter.Value > private.key
33+ {
34+ echo "key<<EOF"
35+ cat private.key
36+ echo "EOF"
37+ } >> $GITHUB_OUTPUT
38+ while read -r line;
39+ do
40+ if [[ -n "${line}" ]]; then
41+ echo "::add-mask::${line}"
42+ fi
43+ done < private.key
44+ rm private.key
45+
46+ - name : Generate token
47+ id : generate-token
48+ uses : tibdex/github-app-token@v2
49+ with :
50+ app_id : 391670
51+ private_key : ${{ steps.app-private-key.outputs.key }}
52+
2253 - name : Checkout code
2354 uses : actions/checkout@v4
55+ with :
56+ token : ${{ steps.generate-token.outputs.token }}
2457
2558 - name : Get API docs
2659 run : |
You can’t perform that action at this time.
0 commit comments