diff --git a/.github/workflows/code-pull-request.yml b/.github/workflows/code-pull-request.yml index cd26145f..a812b1d4 100644 --- a/.github/workflows/code-pull-request.yml +++ b/.github/workflows/code-pull-request.yml @@ -1,6 +1,9 @@ name: Validate on: + push: + branches: + - main pull_request: types: [opened, edited, synchronize, reopened] branches: @@ -10,6 +13,7 @@ on: permissions: contents: read + id-token: write concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} @@ -61,16 +65,22 @@ jobs: if: always() && steps.validate.outcome == 'success' uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: + use_oidc: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} token: ${{ secrets.CODECOV_TOKEN }} + slug: archgate/cli files: coverage/lcov.info + disable_search: true fail_ci_if_error: false - name: Upload test results to Codecov if: always() && steps.validate.outcome != 'skipped' uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: + use_oidc: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} token: ${{ secrets.CODECOV_TOKEN }} + slug: archgate/cli files: coverage/junit.xml - report-type: test_results + disable_search: true + report_type: test_results fail_ci_if_error: false - name: Save Bun Cache uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 377997db..b211948a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -157,16 +157,22 @@ jobs: if: always() && steps.validate.outcome == 'success' uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: + use_oidc: true token: ${{ secrets.CODECOV_TOKEN }} + slug: archgate/cli files: coverage/lcov.info + disable_search: true fail_ci_if_error: false - name: Upload test results to Codecov if: always() && steps.validate.outcome != 'skipped' uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: + use_oidc: true token: ${{ secrets.CODECOV_TOKEN }} + slug: archgate/cli files: coverage/junit.xml - report-type: test_results + disable_search: true + report_type: test_results fail_ci_if_error: false - name: Ensure main is up-to-date before release run: git pull --rebase origin main