We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2213712 commit ea444ecCopy full SHA for ea444ec
src/action.ts
@@ -10,7 +10,6 @@ import {
10
AssumeRoleWithWebIdentityCommand,
11
GetCallerIdentityCommand,
12
} from '@aws-sdk/client-sts';
13
-import packageJson from '../package.json';
14
import { roleSetupInstructions } from './messages';
15
16
const { GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env;
@@ -53,7 +52,7 @@ export class Action {
53
52
new AssumeRoleWithWebIdentityCommand({
54
WebIdentityToken: idToken,
55
RoleArn: role,
56
- RoleSessionName: `${packageJson.name}@${packageJson.version}-${context.runId}`,
+ RoleSessionName: `${context.workflow}-${context.runNumber}-${context.runId}`,
57
}),
58
);
59
0 commit comments