From 6858f3e41ffa4f7b2924e033de2a1220f5eeae69 Mon Sep 17 00:00:00 2001 From: SheryarButt Date: Fri, 11 Oct 2024 15:41:46 +0500 Subject: [PATCH 1/2] Update clone command to use ADMIN_TOKEN for certified-operators repository --- .github/workflows/publish_operator_image_and_bundle.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_operator_image_and_bundle.yaml b/.github/workflows/publish_operator_image_and_bundle.yaml index 2f84585..e206f4f 100644 --- a/.github/workflows/publish_operator_image_and_bundle.yaml +++ b/.github/workflows/publish_operator_image_and_bundle.yaml @@ -271,7 +271,7 @@ jobs: - name: Clone stakater/certified-operators repository run: | - git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/stakater/certified-operators.git + git clone https://${{ secrets.ADMIN_TOKEN }}@github.com/stakater/certified-operators.git if [ -d "certified-operators" ]; then echo "Cloned certified-operators repository successfully." From 49c360e6761303935b4f2aeb86150112085cf946 Mon Sep 17 00:00:00 2001 From: SheryarButt Date: Fri, 11 Oct 2024 17:02:27 +0500 Subject: [PATCH 2/2] Add PUBLISH_TOKEN for bundle publishing and update clone command --- .github/workflows/publish_operator_image_and_bundle.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_operator_image_and_bundle.yaml b/.github/workflows/publish_operator_image_and_bundle.yaml index e206f4f..aa07aa7 100644 --- a/.github/workflows/publish_operator_image_and_bundle.yaml +++ b/.github/workflows/publish_operator_image_and_bundle.yaml @@ -90,6 +90,10 @@ on: description: "Secret to commit bundle files" required: false + PUBLISH_TOKEN: + description: "Secret to publish bundle to stakater/certified-operators" + required: false + STAKATER_DELIVERY_SLACK_WEBHOOK: description: "Secret to send success/failure message to slack" required: true @@ -271,7 +275,7 @@ jobs: - name: Clone stakater/certified-operators repository run: | - git clone https://${{ secrets.ADMIN_TOKEN }}@github.com/stakater/certified-operators.git + git clone https://${{ secrets.PUBLISH_TOKEN }}@github.com/stakater/certified-operators.git if [ -d "certified-operators" ]; then echo "Cloned certified-operators repository successfully."