From 578c751db4536d247c43a340bdf99aaea9041060 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:42:30 -0400 Subject: [PATCH] pass secrets --- .github/workflows/bot_commands.yml | 3 +++ .github/workflows/build_container.yml | 9 ++++++++- .github/workflows/tests.yml | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bot_commands.yml b/.github/workflows/bot_commands.yml index abcd5a5..2238a5b 100644 --- a/.github/workflows/bot_commands.yml +++ b/.github/workflows/bot_commands.yml @@ -36,6 +36,9 @@ jobs: with: pr: ${{ github.event.issue.number }} parent_job_name: Run All Tests + secrets: + RH_REPO: ${{ secrets.RH_REPO }} + RH_ENT: ${{ secrets.RH_ENT }} run_build_container: name: Run Build Container diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml index efa1748..dbed980 100644 --- a/.github/workflows/build_container.yml +++ b/.github/workflows/build_container.yml @@ -7,6 +7,12 @@ on: parent_job_name: required: true type: string + secrets: + RH_REPO: + required: true + RH_ENT: + required: true + jobs: build-container: @@ -100,7 +106,8 @@ jobs: if: matrix.append == 'ubi' uses: actions/checkout@v4 with: - repository: JasonN3/rhel_ent + repository: ${{ secrets.RH_REPO }} + token: ${{ secrets.RH_ENT }} persist-credentials: false path: ubi diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 506c430..ccc3b43 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,6 +17,11 @@ on: parent_job_name: required: true type: string + secrets: + RH_REPO: + required: true + RH_ENT: + required: true concurrency: @@ -30,6 +35,9 @@ jobs: with: pr: ${{ inputs.pr }} parent_job_name: ${{ inputs.parent_job_name && format('{0} / ', inputs.parent_job_name) }}Build Container + secrets: + RH_REPO: ${{ secrets.RH_REPO }} + RH_ENT: ${{ secrets.RH_ENT }} build_iso: name: Build ISO