diff --git a/www/docs/errors/resource-not-accessible-by-integration.md b/www/docs/errors/resource-not-accessible-by-integration.md index 457ec3a82..606f3dcc8 100644 --- a/www/docs/errors/resource-not-accessible-by-integration.md +++ b/www/docs/errors/resource-not-accessible-by-integration.md @@ -14,6 +14,8 @@ Integrations that may cause this: - Homebrew Tap - Krew Plugins +- Scoop Manifests +- Nixpkgs ## Fixing it @@ -25,11 +27,11 @@ You can create a PAT and use it for the entire GoReleaser action run. You'll need to add it as secret and pass it to the action, for instance: ```yaml -# .github/workflows/goreleaser.yaml +# .github/workflows/release.yaml # ... - - uses: goreleaser/goreleaser-action@v4 - env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} +- uses: goreleaser/goreleaser-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} # ... ``` @@ -42,12 +44,12 @@ Let's see, for example, how it would look like for Homebrew Taps. We would need to change the workflow file: ```yaml -# .github/workflows/goreleaser.yaml +# .github/workflows/release.yaml # ... - - uses: goreleaser/goreleaser-action@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} +- uses: goreleaser/goreleaser-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} # ... ``` @@ -57,11 +59,11 @@ And also the `.goreleaser.yaml` file: # .goreleaser.yaml # ... brews: -- name: myproject - tap: - owner: user - name: homebrew-tap - token: "{{ .Env.TAP_GITHUB_TOKEN }}" + - name: myproject + tap: + owner: user + name: homebrew-tap + token: "{{ .Env.TAP_GITHUB_TOKEN }}" # ... ```