cdk-github-runner-switch 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -167,7 +167,8 @@ class GitHubRunnerSwitch extends constructs_1.Construct {
167
167
  logGroup: new logs.LogGroup(this, 'ControlLogs', { retention: logs.RetentionDays.ONE_MONTH, removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY }),
168
168
  description: `GitHub runner switch for ${props.repository}: webhook, reconciliation and minutes check`,
169
169
  environment: {
170
- SECRET_ID: secret.secretArn,
170
+ // An imported secret is read by name: its grant covers the full ARN (with the random suffix), not a partial ARN.
171
+ SECRET_ID: props.secret ? props.secret.secretName : secret.secretArn,
171
172
  REPOSITORY: props.repository,
172
173
  BILLING: props.billing ?? BillingScope.ORGANIZATION,
173
174
  LABEL: label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdk-github-runner-switch",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AWS CDK construct: GitHub Actions runners that switch from GitHub-hosted free minutes to disposable EC2 Spot (Graviton) machines when the monthly minutes run out — and back when the month resets.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "uarch-solutions",