We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8c8a2 commit 968f8f0Copy full SHA for 968f8f0
README.md
@@ -200,3 +200,17 @@ Runs a script that uses the GitHub PowerShell module and outputs the result.
200
Set-GitHubStepSummary -Summary $result.WISECAT
201
Write-GitHubNotice -Message $result.Zen -Title 'GitHub Zen'
202
```
203
+
204
+#### Example 6: Run a script with credential cleanup
205
206
+Runs a script with `PreserveCredentials` set to `false` to automatically disconnect GitHub credentials after execution.
207
208
+```yaml
209
+- name: Run script with credential cleanup
210
+ uses: PSModule/GitHub-Script@v1
211
+ with:
212
+ PreserveCredentials: false
213
+ Script: |
214
+ Get-GitHubUser
215
+ # Credentials will be disconnected after this step
216
+```
0 commit comments