From e6e06798dc3d631593e5bba1833a684ef6d1f110 Mon Sep 17 00:00:00 2001 From: Shevchenko Alexey Date: Fri, 18 Aug 2023 19:04:51 +0300 Subject: [PATCH] workflows grouming --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbc80e9..2f1ca22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,7 @@ jobs: codeql: if: github.event_name == 'push' runs-on: ubuntu-latest + needs: [lint, test] environment: name: ci steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 226a09a..9cac40f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ on: tags: - 'v*' +permissions: + contents: write + jobs: release: runs-on: ubuntu-latest @@ -25,5 +28,9 @@ jobs: args: release -f .goreleaser.yml --clean env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + reportcard: + runs-on: ubuntu-latest + needs: release + steps: - name: update goreportcard uses: creekorful/goreportcard-action@v1.0