From a7185c348402f8af8a2179e66b9bef6de082f3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Fri, 3 May 2024 22:25:46 +0200 Subject: [PATCH] Define secrets It is not possible to use secrets without defining them beforehand. --- .github/workflows/continuous-integration-symfony-unstable.yml | 3 +++ .github/workflows/continuous-integration.yml | 3 +++ workflow-templates/continuous-integration.yml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/continuous-integration-symfony-unstable.yml b/.github/workflows/continuous-integration-symfony-unstable.yml index b045a47..84ebf6b 100644 --- a/.github/workflows/continuous-integration-symfony-unstable.yml +++ b/.github/workflows/continuous-integration-symfony-unstable.yml @@ -25,6 +25,9 @@ on: description: "Will be used with composer require --no-update" required: false type: "string" + secrets: + CODECOV_TOKEN: + required: true env: fail-fast: true diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8dfb408..22e2796 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -17,6 +17,9 @@ on: default: "--prefer-dist" required: false type: "string" + secrets: + CODECOV_TOKEN: + required: true env: fail-fast: true diff --git a/workflow-templates/continuous-integration.yml b/workflow-templates/continuous-integration.yml index eec7fc8..609ba3f 100644 --- a/workflow-templates/continuous-integration.yml +++ b/workflow-templates/continuous-integration.yml @@ -26,6 +26,8 @@ jobs: uses: "doctrine/.github/.github/workflows/continuous-integration.yml@use_a_valid_ref_here" with: php-versions: '["6.0", "6.1"]' # Use custom versions of PHP + secrets: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}" phpunit-unstable-symfony: name: "PHPUnit with unstable Symfony" @@ -36,3 +38,5 @@ jobs: # If the package requires some components but does not allow that version yet extra-requirements: "symfony/framework-bundle 47.1.x symfony/console 47.1.x" + secrets: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"