Skip to content

Commit

Permalink
build: fix credential handling in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation committed Mar 25, 2024
1 parent d4dfae0 commit 8306a6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
aws-secret-access-key:
description: 'AWS access key secret'
required: true
github-token:
description: 'GitHub token to trigger digital.sbb.ch deployment'
required: true

runs:
using: 'composite'
Expand Down Expand Up @@ -58,7 +61,7 @@ runs:
- name: Dispatch digital.sbb.ch build
uses: actions/github-script@v6
with:
github-token: ${{ secrets.DISPATCH_TOKEN }}
github-token: ${{ inputs.github-token }}
script: |
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/figma-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ jobs:
npm-token: ${{ secrets.NPM_TOKEN }}
aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }}
github-token: ${{ secrets.DISPATCH_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ jobs:
npm-token: ${{ secrets.NPM_TOKEN }}
aws-access-key-id: ${{ secrets.ICON_CDN_AWS_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.ICON_CDN_AWS_ACCESS_KEY }}
github-token: ${{ secrets.DISPATCH_TOKEN }}

0 comments on commit 8306a6e

Please sign in to comment.