Skip to content

Commit

Permalink
Fix: github-actions: should pass secrets to reusable workflows (Clust…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 authored Jun 25, 2024
2 parents 26e3dd2 + fa0ef96 commit c6cc599
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 52 deletions.
1 change: 1 addition & 0 deletions .github/workflows/crmsh-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
integration:
if: github.repository == 'ClusterLabs/crmsh' && github.ref_name == 'master'
uses: ./.github/workflows/crmsh-ci.yml
secrets: inherit

delivery:
needs: integration
Expand Down
78 changes: 26 additions & 52 deletions .github/workflows/crmsh-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
tox -v -e${{ matrix.python-version }}
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_crm_report_bugs:
runs-on: ubuntu-24.04
Expand All @@ -67,9 +66,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_crm_report_normal:
runs-on: ubuntu-24.04
Expand All @@ -84,9 +82,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_bugs:
runs-on: ubuntu-24.04
Expand All @@ -101,9 +98,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_bugs_non_root:
runs-on: ubuntu-24.04
Expand All @@ -118,9 +114,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_common:
runs-on: ubuntu-24.04
Expand All @@ -135,9 +130,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_common_non_root:
runs-on: ubuntu-24.04
Expand All @@ -152,9 +146,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_options:
runs-on: ubuntu-24.04
Expand All @@ -169,9 +162,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_corosync_ui:
runs-on: ubuntu-24.04
Expand All @@ -186,9 +178,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_bootstrap_options_non_root:
runs-on: ubuntu-24.04
Expand All @@ -203,9 +194,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_setup_remove:
runs-on: ubuntu-24.04
Expand All @@ -220,9 +210,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_setup_remove_non_root:
runs-on: ubuntu-24.04
Expand All @@ -237,9 +226,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_options:
runs-on: ubuntu-24.04
Expand All @@ -254,9 +242,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_validate:
runs-on: ubuntu-24.04
Expand All @@ -271,9 +258,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_validate_non_root:
runs-on: ubuntu-24.04
Expand All @@ -288,9 +274,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_qdevice_user_case:
runs-on: ubuntu-24.04
Expand All @@ -305,9 +290,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_resource_failcount:
runs-on: ubuntu-24.04
Expand All @@ -322,9 +306,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_resource_set:
runs-on: ubuntu-24.04
Expand All @@ -339,9 +322,8 @@ jobs:
$DOCKER_SCRIPT $index
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_resource_set_non_root:
runs-on: ubuntu-24.04
Expand All @@ -356,9 +338,8 @@ jobs:
$DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_configure_sublevel:
runs-on: ubuntu-24.04
Expand All @@ -373,9 +354,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_constraints_bugs:
runs-on: ubuntu-24.04
Expand All @@ -390,9 +370,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_geo_cluster:
runs-on: ubuntu-24.04
Expand All @@ -407,9 +386,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_healthcheck:
runs-on: ubuntu-24.04
Expand All @@ -424,9 +402,8 @@ jobs:
$DOCKER_SCRIPT $index && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT $index -u
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_cluster_api:
runs-on: ubuntu-24.04
Expand All @@ -440,9 +417,8 @@ jobs:
$DOCKER_SCRIPT `$GET_INDEX_OF cluster_api`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_user_access:
runs-on: ubuntu-24.04
Expand All @@ -456,9 +432,8 @@ jobs:
$DOCKER_SCRIPT `$GET_INDEX_OF user_access`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

functional_test_ssh_agent:
runs-on: ubuntu-24.04
Expand All @@ -472,9 +447,8 @@ jobs:
$DOCKER_SCRIPT `$GET_INDEX_OF ssh_agent` && $DOCKER_SCRIPT -d && $DOCKER_SCRIPT -u `$GET_INDEX_OF ssh_agent`
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

original_regression_test:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit c6cc599

Please sign in to comment.