Skip to content

Commit fb8d9ac

Browse files
📖 [Docs]: Clean up comments and format TestData structure in Process-PSModule workflow
1 parent 7729327 commit fb8d9ac

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

‎.github/workflows/Process-PSModule.yml‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,17 @@ permissions:
2727

2828
jobs:
2929
Process-PSModule:
30-
# The TestData secret (PR #365) shipped in v6.0.0; pinned to the current release v6.1.4.
3130
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@da180bac16b13bfbcdf08b2e4e221b5b49e5ff28 # v6.1.4
3231
secrets:
33-
# PowerShell Gallery API key used to publish the module.
3432
APIKey: ${{ secrets.APIKey }}
35-
# All data the module's tests need, in one object: a "secrets" map (masked) and a "variables"
36-
# map (not masked), each entry exposed as an environment variable. Only what the tests require
37-
# is passed - secrets: inherit is intentionally not used. Integration tests skip when
38-
# CONFLUENCE_API_TOKEN is unavailable (forks / PRs without access). Secrets use the direct
39-
# "${{ secrets.X }}" form (CodeQL-clean) and the whole blob is one folded line so GitHub
40-
# registers a single mask.
4133
TestData: >-
42-
{ "secrets": { "CONFLUENCE_API_TOKEN": "${{ secrets.CONFLUENCE_API_TOKEN }}" },
43-
"variables": { "CONFLUENCE_SITE": ${{ toJSON(vars.CONFLUENCE_SITE) }},
44-
"CONFLUENCE_USERNAME": ${{ toJSON(vars.CONFLUENCE_USERNAME) }},
45-
"CONFLUENCE_SPACE_KEY": ${{ toJSON(vars.CONFLUENCE_SPACE_KEY) }} } }
34+
{
35+
"secrets": {
36+
"CONFLUENCE_API_TOKEN": "${{ secrets.CONFLUENCE_API_TOKEN }}"
37+
},
38+
"variables": {
39+
"CONFLUENCE_SITE": "${{ vars.CONFLUENCE_SITE }}",
40+
"CONFLUENCE_USERNAME": "${{ vars.CONFLUENCE_USERNAME }}",
41+
"CONFLUENCE_SPACE_KEY": "${{ vars.CONFLUENCE_SPACE_KEY }}"
42+
}
43+
}

0 commit comments

Comments
 (0)