Skip to content

Commit 69a8a7c

Browse files
Add generic GitHub App secret mapping
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fb1bdb8 commit 69a8a7c

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/Workflow-Test-Default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: ./.github/workflows/workflow.yml
3131
secrets:
3232
APIKey: ${{ secrets.APIKey }}
33+
GitHubAppClientId: ${{ secrets.PSMODULE_CLIENT_ID }}
34+
GitHubAppPrivateKey: ${{ secrets.PSMODULE_PRIVATE_KEY }}
3335
TestData: >-
3436
{
3537
"secrets": {

.github/workflows/Workflow-Test-WithManifest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
uses: ./.github/workflows/workflow.yml
3131
secrets:
3232
APIKey: ${{ secrets.APIKey }}
33+
GitHubAppClientId: ${{ secrets.PSMODULE_CLIENT_ID }}
34+
GitHubAppPrivateKey: ${{ secrets.PSMODULE_PRIVATE_KEY }}
3335
TestData: >-
3436
{
3537
"secrets": {

.github/workflows/workflow.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
APIKey:
77
description: The API key for the PowerShell Gallery.
88
required: true
9+
GitHubAppClientId:
10+
description: Generic GitHub App client ID secret for caller mapping.
11+
required: true
12+
GitHubAppPrivateKey:
13+
description: Generic GitHub App private key secret for caller mapping.
14+
required: true
915
TestData:
1016
description: |
1117
Optional single-line JSON object carrying all data the module test jobs
@@ -77,6 +83,9 @@ jobs:
7783
# - ✅ Manual run - Always runs to load configuration
7884
Plan:
7985
uses: ./.github/workflows/Plan.yml
86+
secrets:
87+
GitHubAppClientId: ${{ secrets.GitHubAppClientId }}
88+
GitHubAppPrivateKey: ${{ secrets.GitHubAppPrivateKey }}
8089
with:
8190
SettingsPath: ${{ inputs.SettingsPath }}
8291
Debug: ${{ inputs.Debug }}
@@ -246,6 +255,8 @@ jobs:
246255
uses: ./.github/workflows/Publish-Module.yml
247256
secrets:
248257
APIKey: ${{ secrets.APIKey }}
258+
GitHubAppClientId: ${{ secrets.GitHubAppClientId }}
259+
GitHubAppPrivateKey: ${{ secrets.GitHubAppPrivateKey }}
249260
needs:
250261
- Plan
251262
- Get-TestResults

0 commit comments

Comments
 (0)