From 5c99c80351bde54902d51c96e84c57c925b53ea2 Mon Sep 17 00:00:00 2001 From: Kiran Patel <7103956+kiran94@users.noreply.github.com> Date: Sun, 30 Apr 2023 12:15:53 +0100 Subject: [PATCH] fix(ci): updated permissions (#2) --- .github/workflows/main.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c1755f7..ac1d741 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -9,9 +9,11 @@ jobs: release: runs-on: ubuntu-latest timeout-minutes: 10 + permissions: + contents: write steps: - - name: Release - uses: go-semantic-release/action@v1 + - uses: actions/checkout@v3 + - uses: go-semantic-release/action@v1 if: github.ref == 'refs/heads/main' - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}