From b054103e03e0834562fd4a2f9e3fa6222eeda6fa Mon Sep 17 00:00:00 2001 From: tiago Date: Wed, 23 Oct 2024 14:42:22 +0100 Subject: [PATCH] fix(ci): add permissions for test_reporter --- .github/workflows/test_backend.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_backend.yml b/.github/workflows/test_backend.yml index ea39cd4..f794bcd 100644 --- a/.github/workflows/test_backend.yml +++ b/.github/workflows/test_backend.yml @@ -5,9 +5,15 @@ name: CI on: push: branches: [ master, main ] - pull_request_target: + pull_request: branches: [ master, main, staging ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + jobs: Validate_and_Test: runs-on: ubuntu-latest @@ -22,6 +28,12 @@ jobs: # ports: [ '5432:5432' ] # options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 + permissions: + statuses: write + checks: write + contents: write + pull-requests: write + steps: - uses: actions/checkout@v4 with: @@ -71,6 +83,7 @@ jobs: - name: Test Reporter uses: dorny/test-reporter@v1 + if: success() || failure() # run this step even if previous step failed with: