Skip to content

Commit 2f5fb4b

Browse files
committed
[NRL-1179] Fix naming in daily-build for codebuild runner. Fix perms for pat token access
1 parent 1998e5c commit 2f5fb4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/daily-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
jobs:
2020
build:
2121
name: Build - ${{ github.ref }}
22-
runs-on: codebuild-nhsd-nrlf--ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
22+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2323

2424
steps:
2525
- name: Git clone - ${{ github.ref }}

terraform/account-wide-infrastructure/mgmt/codebuild.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ data "aws_iam_policy_document" "codebuild_policy" {
5656
"secretsmanager:ListSecretVersionIds"
5757
]
5858
resources = [
59-
"arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:${local.project}--codebuild-github-pat",
59+
"arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:${local.project}--codebuild-github-pat-*",
6060
]
6161
}
6262

0 commit comments

Comments
 (0)