From b63b862171fe063903a4b303ae7fec1821e986e5 Mon Sep 17 00:00:00 2001 From: Gulsum Atici Date: Mon, 26 Feb 2024 21:15:11 +0300 Subject: [PATCH] chore: Pass the secrets directly by removing inherits (#66) Signed-off-by: gatici Co-authored-by: Guillaume Belanger --- .github/workflows/issues.yaml | 3 ++- .github/workflows/main.yaml | 6 ++++-- .github/workflows/promote.yaml | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml index ee3d9dd..518a665 100644 --- a/.github/workflows/issues.yaml +++ b/.github/workflows/issues.yaml @@ -8,4 +8,5 @@ jobs: update: name: Update Issue uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@main - secrets: inherit + secrets: + JIRA_URL: ${{ secrets.JIRA_URL }} diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9398225..1ed5bc9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,7 +13,8 @@ on: jobs: check-libraries: uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@main - secrets: inherit + secrets: + CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} lint-report: uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@main @@ -44,4 +45,5 @@ jobs: with: charm-file-name: "sdcore-pcf-k8s_ubuntu-22.04-amd64.charm" track-name: 1.3 - secrets: inherit + secrets: + CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 4282fed..8b8afb2 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -26,4 +26,6 @@ jobs: promotion: ${{ github.event.inputs.promotion }} track-name: ${{ github.event.inputs.track-name }} - secrets: inherit + secrets: + CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}