Skip to content

Commit

Permalink
Use updated Github Role pattern (#299)
Browse files Browse the repository at this point in the history
* Use updated Github Role pattern

Uses the new role created in Asana/codez#298254 for publishing the node client library.

* Use updated role name

* Update secret retrieval to use new format
  • Loading branch information
harshita-gupta authored Jan 9, 2025
1 parent 85bae94 commit 9938bc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
- name: Get GitHub app token
uses: asana/get-github-app-token@v1
id: get-token
Expand Down Expand Up @@ -83,11 +83,11 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
- name: Load secrets
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: NPM_API,prod/github_actions_release_asana_client_libraries/npm_api_key
secret-ids: NPM_API,npm_api_key
# npm_api_key secret is stored as {key:"***..."}.
# GitHub Actions environment variable name is NPM_API so to access "key" from the json we can use NPM_API_KEY
parse-json-secrets: true
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
- name: Get GitHub app token
uses: asana/get-github-app-token@v1
id: get-token
Expand Down

0 comments on commit 9938bc2

Please sign in to comment.