Skip to content

Commit 9e28f65

Browse files
committed
CCM-17709: Added inputs to actions to accept GH app token
Signed-off-by: Tim Ireland <tim.ireland@hscic.gov.uk>
1 parent 7c17334 commit 9e28f65

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

actions/ddb-publish/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
source-path:
77
description: "Path to the config store root directory"
88
required: true
9+
api-token:
10+
description: "Optional GitHub token with read access to the action repository (contents/actions)."
11+
required: false
12+
default: ""
913
target-env:
1014
description: "Target environment label (e.g. draft/int/prod)"
1115
required: true
@@ -27,7 +31,7 @@ runs:
2731
- name: Resolve and download ddb-publish bundle
2832
shell: bash
2933
env:
30-
GH_TOKEN: ${{ github.token }}
34+
GH_TOKEN: ${{ inputs.api-token || github.token }}
3135
CALLER_REPO: ${{ github.repository }}
3236
ACTION_REPO: ${{ github.action_repository }}
3337
ACTION_REF: ${{ github.action_ref }}

actions/eventbridge-publish/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
source-path:
77
description: "Path to the config store root directory"
88
required: true
9+
api-token:
10+
description: "Optional GitHub token with read access to the action repository (contents/actions)."
11+
required: false
12+
default: ""
913
event-bus-arn:
1014
description: "ARN of event bus to publish to. Not required if dry-run is specified"
1115
required: false
@@ -20,7 +24,7 @@ runs:
2024
- name: Resolve and download eventbridge-publish bundle
2125
shell: bash
2226
env:
23-
GH_TOKEN: ${{ github.token }}
27+
GH_TOKEN: ${{ inputs.api-token || github.token }}
2428
CALLER_REPO: ${{ github.repository }}
2529
ACTION_REPO: ${{ github.action_repository }}
2630
ACTION_REF: ${{ github.action_ref }}

0 commit comments

Comments
 (0)