Skip to content

Commit 86a715d

Browse files
🩹 [Patch]: Explicitly define secrets for Test-Module and Publish-Module workflows
1 parent 711d451 commit 86a715d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎.github/workflows/workflow.yml‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ jobs:
145145
- Build-Module
146146
- Get-Settings
147147
uses: ./.github/workflows/Test-Module.yml
148-
secrets: inherit
149148
with:
150149
Settings: ${{ needs.Get-Settings.outputs.Settings }}
151150

@@ -183,7 +182,14 @@ jobs:
183182
- Get-Settings
184183
- BeforeAll-ModuleLocal
185184
uses: ./.github/workflows/Test-ModuleLocal.yml
186-
secrets: inherit
185+
secrets:
186+
TEST_APP_ENT_CLIENT_ID: ${{ secrets.TEST_APP_ENT_CLIENT_ID }}
187+
TEST_APP_ENT_PRIVATE_KEY: ${{ secrets.TEST_APP_ENT_PRIVATE_KEY }}
188+
TEST_APP_ORG_CLIENT_ID: ${{ secrets.TEST_APP_ORG_CLIENT_ID }}
189+
TEST_APP_ORG_PRIVATE_KEY: ${{ secrets.TEST_APP_ORG_PRIVATE_KEY }}
190+
TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }}
191+
TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }}
192+
TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }}
187193
with:
188194
Settings: ${{ needs.Get-Settings.outputs.Settings }}
189195

@@ -223,7 +229,6 @@ jobs:
223229
- Test-Module
224230
- Test-ModuleLocal
225231
uses: ./.github/workflows/Get-TestResults.yml
226-
secrets: inherit
227232
with:
228233
Settings: ${{ needs.Get-Settings.outputs.Settings }}
229234

@@ -239,7 +244,6 @@ jobs:
239244
- Test-Module
240245
- Test-ModuleLocal
241246
uses: ./.github/workflows/Get-CodeCoverage.yml
242-
secrets: inherit
243247
with:
244248
Settings: ${{ needs.Get-Settings.outputs.Settings }}
245249

@@ -251,7 +255,8 @@ jobs:
251255
Publish-Module:
252256
if: fromJson(needs.Get-Settings.outputs.Settings).Run.PublishModule && needs.Get-Settings.result == 'success' && !cancelled() && (needs.Get-TestResults.result == 'success' || needs.Get-TestResults.result == 'skipped') && (needs.Get-CodeCoverage.result == 'success' || needs.Get-CodeCoverage.result == 'skipped') && (needs.Build-Site.result == 'success' || needs.Build-Site.result == 'skipped')
253257
uses: ./.github/workflows/Publish-Module.yml
254-
secrets: inherit
258+
secrets:
259+
APIKey: ${{ secrets.APIKey }}
255260
needs:
256261
- Get-Settings
257262
- Get-TestResults

0 commit comments

Comments
 (0)