Skip to content

Commit

Permalink
Merge pull request #837 from guardian/fix-github-oidc-token-url
Browse files Browse the repository at this point in the history
fix: fix Github Actions Role OIDC token url
  • Loading branch information
philmcmahon authored Oct 8, 2021
2 parents b9dec46 + 775c8fd commit 3a22d2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Object {
"ThumbprintList": Array [
"a031c46782e6e6c662c2c87c76da9aa62ccabd8e",
],
"Url": "https://vstoken.actions.githubusercontent.com",
"Url": "https://token.actions.githubusercontent.com",
},
"Type": "AWS::IAM::OIDCProvider",
},
Expand All @@ -65,7 +65,7 @@ Object {
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": Object {
"StringLike": Object {
"vstoken.actions.githubusercontent.com:sub": "repo:guardian/*",
"token.actions.githubusercontent.com:sub": "repo:guardian/*",
},
},
"Effect": "Allow",
Expand Down
2 changes: 1 addition & 1 deletion src/constructs/iam/roles/github-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("The GitHubActionsRole construct", () => {
Action: "sts:AssumeRoleWithWebIdentity",
Condition: {
StringLike: {
"vstoken.actions.githubusercontent.com:sub": "repo:guardian/platform-*",
"token.actions.githubusercontent.com:sub": "repo:guardian/platform-*",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/constructs/iam/roles/github-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { GuStack } from "../../core";
import type { GuPolicy } from "../policies";
import { GuRole } from "./roles";

const GITHUB_ACTIONS_ID_TOKEN_REQUEST_DOMAIN = "vstoken.actions.githubusercontent.com";
const GITHUB_ACTIONS_ID_TOKEN_REQUEST_DOMAIN = "token.actions.githubusercontent.com";

/*
Thumbprint of `GITHUB_ACTIONS_ID_TOKEN_REQUEST_DOMAIN`.
Expand Down

0 comments on commit 3a22d2c

Please sign in to comment.