test: test with configure-aliyun-credentials-action action #4
Workflow file for this run
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: Test with configure-aliyun-credentials-action | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.20" | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Configure credentials | |
uses: aliyun/configure-aliyun-credentials-action@v1-beta | |
with: | |
role-to-assume: 'acs:ram::1325847523475998:role/clitestramrolearn' | |
oidc-provider-arn: 'acs:ram::1325847523475998:oidc-provider/GitHub' | |
- name: Build | |
run: make build | |
- name: Who am I | |
run: out/aliyun sts GetCallerIdentity |