Skip to content

Commit

Permalink
ci: Add github credentials to action
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Dec 6, 2024
1 parent 8ddffed commit 276422d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ on:

permissions:
contents: read
id-token: write

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
AWS_REGION: us-east-1

jobs:
cargo-clippy:
Expand Down Expand Up @@ -66,6 +68,11 @@ jobs:
id: toolchain
with:
components: llvm-tools-preview
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::123456789100:role
aws-region: ${{ env.AWS_REGION }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: actions/cache@v4
Expand Down

0 comments on commit 276422d

Please sign in to comment.