diff --git a/.github/workflows/Test.GitHub.yml b/.github/workflows/Test.GitHub.yml index a7b856f49..addd3bcc2 100644 --- a/.github/workflows/Test.GitHub.yml +++ b/.github/workflows/Test.GitHub.yml @@ -3,6 +3,8 @@ name: Test [GitHub] on: workflow_dispatch: +permissions: write-all + jobs: TestGitHub: name: Test GitHub @@ -10,9 +12,10 @@ jobs: env: GH_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication steps: - - name: Run Build-Module + - name: Test Authentication using PAT shell: pwsh run: | + Write- Install-Module -Name GitHub -Verbose -Force Get-GitHubConfig Get-GitHubWorkflow -Repo $env:GITHUB_REPOSITORY -Owner $env:GITHUB_REPOSITORY_OWNER -Verbose