Skip to content

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell #236

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell

🚀 [Feature]: Manage Atlassian Confluence Cloud from PowerShell #236

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:
# The TestData secret (PR #365) shipped in v6.0.0; pinned to the current release v6.1.0.
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@0d7a2f0b9422ad727886d1ef79d1874ccc358fd7 # v6.1.0
secrets:
# PowerShell Gallery API key used to publish the module.
APIKey: ${{ secrets.APIKey }}
# All data the module's tests need, in one object: a "secrets" map (masked) and a "variables"
# map (not masked), each entry exposed as an environment variable. Only what the tests require
# is passed - secrets: inherit is intentionally not used. Integration tests skip when
# CONFLUENCE_API_TOKEN is unavailable (forks / PRs without access). Secrets use the direct
# "${{ secrets.X }}" form (CodeQL-clean) and the whole blob is one folded line so GitHub
# registers a single mask.
TestData: >-
{ "secrets": { "CONFLUENCE_API_TOKEN": "${{ secrets.CONFLUENCE_API_TOKEN }}" },
"variables": { "CONFLUENCE_SITE": ${{ toJSON(vars.CONFLUENCE_SITE) }},
"CONFLUENCE_USERNAME": ${{ toJSON(vars.CONFLUENCE_USERNAME) }},
"CONFLUENCE_SPACE_KEY": ${{ toJSON(vars.CONFLUENCE_SPACE_KEY) }} } }