Skip to content

Commit 3cb37f2

Browse files
Add permissions for GitHub Actions workflow
This update adds necessary permissions for the GitHub Actions workflow to ensure it can perform actions like writing to contents, pull requests, and deployments. This change is essential for the proper functioning of the deployment process for Pester Help Tests. Thank you!
1 parent 4236724 commit 3cb37f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy-preview-module.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ env:
1919
testResultFolderName: testResults
2020

2121
name: Deploy Preview Module
22+
permissions:
23+
contents: write
24+
pull-requests: write
25+
actions: write
26+
checks: write
27+
deployments: write
28+
2229
# This workflow is triggered on push to the develop branch and deploys the module to the PowerShell Gallery as a preview version.
2330
jobs:
2431
Build_Stage_Package_Module:
@@ -70,7 +77,7 @@ jobs:
7077
shell: pwsh
7178
run: ./build.ps1 -tasks publish
7279
env:
73-
GitHubToken: ${{ secrets.GitHubToken }}
80+
GitHubToken: ${{ secrets.GITHUB_TOKEN }}
7481
GalleryApiToken: ${{ secrets.GalleryApiToken }}
7582
ReleaseBranch: develop
7683
MainGitBranch: develop

0 commit comments

Comments
 (0)