Skip to content

Commit 5014aeb

Browse files
committed
docs: Add expected error message when API key is not provided
1 parent 4496d37 commit 5014aeb

File tree

1 file changed

+8
-0
lines changed
  • src/ScriptModuleRepositoryTemplate/TemplateRepoFiles

1 file changed

+8
-0
lines changed

src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/ReadMe.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ If using GitHub Actions for your CI/CD workflows, perform the following steps to
6767
1. Set the `Name` to: `POWERSHELL_GALLERY_API_KEY`
6868
1. Set the `Secret` to the API key value that you copied in the previous section.
6969

70+
If you do not provide a valid API key, you will get an error like the following in the `Publish prerelease PowerShell module` step of the deployment workflow:
71+
72+
```text
73+
Failed to publish module '<module name>': 'dotnet cli failed to nuget push Pushing <module name>.nupkg to '<url>'...
74+
PUT <url> Forbidden
75+
error: Response status code does not indicate success: 403 (The specified API key is invalid, has expired, or does not have permission to access the specified package.).
76+
```
77+
7078
Next we want to create an Environment so that stable module versions require manual approval before being published to the gallery:
7179

7280
1. You should still be in the `Settings` section of your repository.

0 commit comments

Comments
 (0)