Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required workflow permissions #36

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

joshspicer
Copy link
Member

Adding the required workflow permission to avoid users getting blocked by an obscure publishing error.

This was already patched in the devcontainers/templates repo

Avoids the following kind of error:

[2024-08-27T15:39:21.061Z] https://ghcr.io/v2/devcontainers/template-starter/color/blobs/uploads/: Unexpected status code '403' 
{
    "errors": [
        {
            "code": "DENIED",
            "message": "installation not allowed to Create organization package"
        }
    ]
}

Taking a look at devcontainers/templates@71063d5#diff-762373f28dabfb9bf0baf6a4fb9d5ca47a3ff3a5c16c908e74b52d2eb81ddbc9R14 and fixing this template. Avoids the following kind of error:
```
[2024-08-27T15:39:21.061Z] https://ghcr.io/v2/devcontainers/template-starter/color/blobs/uploads/: Unexpected status code '403' 
{
    "errors": [
        {
            "code": "DENIED",
            "message": "installation not allowed to Create organization package"
        }
    ]
}
```
joshspicer added a commit to joshspicer/templates-2024aug27 that referenced this pull request Aug 27, 2024
@joshspicer
Copy link
Member Author

Looks to already be fixed for the Features template: devcontainers/feature-starter@a1d353b

@joshspicer joshspicer merged commit ee20328 into main Aug 27, 2024
2 checks passed
joshspicer added a commit to devcontainers/action that referenced this pull request Aug 27, 2024
* Update README with required permissions info

Related: devcontainers/template-starter#36 , microsoft/vscode#226686 (comment)

* add pull request tips and setting a public tips

* grammar and style pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants