From 075fb57c6bf1d2624b3cadfbaab1d92f0dfeef18 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Tue, 17 Aug 2021 19:29:39 +0900 Subject: [PATCH] add a description about `use-node-id` --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index b07b01e..c175542 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,16 @@ The role's trust policy need extra permission `sts:TagSession` for session taggi ### Use the node id of the repository You can use the global node id of the repository instead of its name as ExternalId. +By adding `use-node-id: true`, the action sends the node id (e.g. `MDEwOlJlcG9zaXRvcnkzNDg4NDkwMzk=`) as ExternalId. + +```yaml +- uses: fuller-inc/actions-aws-assume-role@v1 + with: + aws-region: us-east-2 + role-to-assume: arn:aws:iam::123456789012:role/GitHubRepoRole-us-east-2 + use-node-id: true +``` + To get the node id, call [Get a repository REST API](https://docs.github.com/en/rest/reference/repos#get-a-repository). ```console