Fix secrets access in a composite action

pull/7154/head
Gokhan Gulbiz 2023-08-25 12:56:04 +03:00
parent f961ed80fe
commit 5c5375e5ff
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
2 changed files with 7 additions and 1 deletions

View File

@ -2,13 +2,15 @@ name: coverage
inputs:
flags:
required: false
codecov_token:
required: true
runs:
using: composite
steps:
- uses: codecov/codecov-action@v3
with:
flags: ${{ inputs.flags }}
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ inputs.codecov_token }}
verbose: true
- name: Create codeclimate coverage
run: |-

View File

@ -182,6 +182,7 @@ jobs:
if: always()
with:
flags: ${{ env.PG_MAJOR }}_${{ matrix.suite }}_${{ matrix.make }}
codecov_token: ${{ secrets.CODECOV_TOKEN }}
prepare_parallelization_matrix_6:
name: Parallel 6
runs-on: ubuntu-latest
@ -231,6 +232,7 @@ jobs:
if: always()
with:
flags: ${{ env.pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-pg-upgrade:
runs-on: ubuntu-latest
container:
@ -272,6 +274,7 @@ jobs:
if: always()
with:
flags: ${{ env.old_pg_major }}_${{ env.new_pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
test-citus-upgrade:
runs-on: ubuntu-latest
container:
@ -314,6 +317,7 @@ jobs:
if: always()
with:
flags: ${{ env.pg_major }}_upgrade
codecov_token: ${{ secrets.CODECOV_TOKEN }}
upload-coverage:
if: always()
env: