experiment: pass ALL secrets/variables into module tests #445
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Process-PSModule | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - closed | |
| - opened | |
| - reopened | |
| - synchronize | |
| - labeled | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| Process-PSModule: | |
| uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@d4020f3c9c3621cebae5d8bf4ffaf10f55c1784a # v6.1.2 | |
| secrets: | |
| APIKey: ${{ secrets.APIKey }} | |
| # E2E EXPERIMENT: push ALL secrets and ALL variables into the module test jobs to see whether | |
| # Import-TestData can enumerate them. toJSON(secrets) serializes every secret and always | |
| # includes the auto-injected github_token; toJSON(vars) serializes every repo/org variable. | |
| # The tests iterate every environment variable and print it so the job log shows what is | |
| # visible (Actions redacts registered secret values to ***). | |
| TestData: >- | |
| { "secrets": ${{ toJSON(secrets) }}, "variables": ${{ toJSON(vars) }} } |