Skip to content

Commit

Permalink
Add permisions to deploy steep (#338)
Browse files Browse the repository at this point in the history
This pr fixes the bug of 403 error during create github release:

```
Run softprops/action-gh-release@v1
πŸ‘©β€πŸ­ Creating new GitHub release for tag v0.7.4...
⚠️ GitHub release failed with status: 403
undefined
retrying... (2 retries remaining)
πŸ‘©β€πŸ­ Creating new GitHub release for tag v0.7.4...
⚠️ GitHub release failed with status: 403
undefined
retrying... (1 retries remaining)
πŸ‘©β€πŸ­ Creating new GitHub release for tag v0.7.4...
⚠️ GitHub release failed with status: 403
undefined
retrying... (0 retries remaining)
❌ Too many retries. Aborting...
Error: Too many retries.
```


softprops/action-gh-release#400 (comment)

I have added also `id-token: write` because this is set of permissions
that we have in the main repository.
  • Loading branch information
Czaki committed Jan 24, 2024
1 parent aa84627 commit 595b088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -148,7 +148,9 @@ jobs:
needs: test
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 595b088

Please sign in to comment.