Skip to content

Commit ea444ec

Browse files
committed
update role session name
1 parent 2213712 commit ea444ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/action.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
AssumeRoleWithWebIdentityCommand,
1111
GetCallerIdentityCommand,
1212
} from '@aws-sdk/client-sts';
13-
import packageJson from '../package.json';
1413
import { roleSetupInstructions } from './messages';
1514

1615
const { GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env;
@@ -53,7 +52,7 @@ export class Action {
5352
new AssumeRoleWithWebIdentityCommand({
5453
WebIdentityToken: idToken,
5554
RoleArn: role,
56-
RoleSessionName: `${packageJson.name}@${packageJson.version}-${context.runId}`,
55+
RoleSessionName: `${context.workflow}-${context.runNumber}-${context.runId}`,
5756
}),
5857
);
5958

0 commit comments

Comments
 (0)