add permissions field #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Concordium client release | |
on: | |
push: | |
branches: | |
- lma/release/github_actions | |
tags: | |
- '*.*.*-*' | |
env: | |
S3_ARN_TEMPLATES: '{ | |
\"client-linux\": \"s3://distribution.concordium.software/tools/linux/concordium-client_${VERSION}\", | |
\"client-macos\": \"s3://distribution.concordium.software/tools/macos/concordium-client_${VERSION}-unsigned.pkg\", | |
\"client-windows\": \"s3://distribution.concordium.software/tools/windows/concordium-client_${VERSION}.zip\" | |
}' | |
AWS_ROLE_TO_ASSUME: 'arn:aws:iam::192549843005:role/github_concordium-client' | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
validate-preconditions: | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: "arn:aws:iam::192549843005:role/github_concordium-client" | |
role-session-name: ClientPreconditionsSession | |
aws-region: "eu-west-1" |