Skip to content

test: test with configure-aliyun-credentials-action action #2

test: test with configure-aliyun-credentials-action action

test: test with configure-aliyun-credentials-action action #2

Workflow file for this run

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:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
- name: Configure credentials
uses: aliyun/configure-aliyun-credentials-action@v1
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