From c96554f195a1eabb1cccb188429b812ef643a140 Mon Sep 17 00:00:00 2001 From: Abhinav Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Mon, 28 Oct 2024 06:51:47 -0700 Subject: [PATCH 1/4] more test change --- .github/workflows/rotate-ci-apikey.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/rotate-ci-apikey.yml diff --git a/.github/workflows/rotate-ci-apikey.yml b/.github/workflows/rotate-ci-apikey.yml new file mode 100644 index 0000000..ee346cf --- /dev/null +++ b/.github/workflows/rotate-ci-apikey.yml @@ -0,0 +1,19 @@ +name: Rotate API Key for CI/CD +on: [push] +jobs: + rotate: + name: Rotate API Key + runs-on: ubuntu-latest + steps: + - name: rotate gcp keys + uses: anekkanti/github-action-rotate-temporalcloud-apikey@main + with: + apikey: "${{ secrets.TEMPORAL_CLOUD_API_KEY }}" + serviceAccountId: "${{ secrets.TEMPORAL_CLOUD_SERVICE_ACCOUNT_ID }}" + apikeyNamePrefix: "${{ github.repository }}-ci" + duration: 90 + description: "Apikey used for CI/CD in {{ github.repository }}" + deleteOldApikeys: true + personalAccessToken: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + repositories: ${{ github.repository }} + secretName: "TEMPORAL_CLOUD_API_KEY_TEST" From 0633f8465710f46e2b46b744d7e7258c18027442 Mon Sep 17 00:00:00 2001 From: Abhinav Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Mon, 28 Oct 2024 06:58:45 -0700 Subject: [PATCH 2/4] more updates --- .github/workflows/rotate-ci-apikey.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rotate-ci-apikey.yml b/.github/workflows/rotate-ci-apikey.yml index ee346cf..cb9e624 100644 --- a/.github/workflows/rotate-ci-apikey.yml +++ b/.github/workflows/rotate-ci-apikey.yml @@ -1,19 +1,22 @@ name: Rotate API Key for CI/CD -on: [push] +on: + - workflow_dispatch + - schedule: + - cron: '0 0 * * *' jobs: rotate: name: Rotate API Key runs-on: ubuntu-latest steps: - name: rotate gcp keys - uses: anekkanti/github-action-rotate-temporalcloud-apikey@main + uses: anekkanti/github-action-rotate-temporalcloud-apikey@v0.1.0 with: apikey: "${{ secrets.TEMPORAL_CLOUD_API_KEY }}" serviceAccountId: "${{ secrets.TEMPORAL_CLOUD_SERVICE_ACCOUNT_ID }}" apikeyNamePrefix: "${{ github.repository }}-ci" duration: 90 - description: "Apikey used for CI/CD in {{ github.repository }}" + description: "Apikey used for CI/CD" deleteOldApikeys: true personalAccessToken: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" repositories: ${{ github.repository }} - secretName: "TEMPORAL_CLOUD_API_KEY_TEST" + secretName: "TEMPORAL_CLOUD_API_KEY" From 2e086c733e4bc54857a1b5eeac9ab21b5abde439 Mon Sep 17 00:00:00 2001 From: Abhinav Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:00:30 -0700 Subject: [PATCH 3/4] minor fix --- .github/workflows/rotate-ci-apikey.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rotate-ci-apikey.yml b/.github/workflows/rotate-ci-apikey.yml index cb9e624..084c059 100644 --- a/.github/workflows/rotate-ci-apikey.yml +++ b/.github/workflows/rotate-ci-apikey.yml @@ -1,6 +1,6 @@ name: Rotate API Key for CI/CD on: - - workflow_dispatch + - workflow_dispatch: - schedule: - cron: '0 0 * * *' jobs: From 1261c019d7a07b934eced2e75b2adac62093a943 Mon Sep 17 00:00:00 2001 From: Abhinav Nekkanti <10552725+anekkanti@users.noreply.github.com> Date: Mon, 28 Oct 2024 07:01:59 -0700 Subject: [PATCH 4/4] another fix --- .github/workflows/rotate-ci-apikey.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rotate-ci-apikey.yml b/.github/workflows/rotate-ci-apikey.yml index 084c059..ea3c4de 100644 --- a/.github/workflows/rotate-ci-apikey.yml +++ b/.github/workflows/rotate-ci-apikey.yml @@ -1,8 +1,8 @@ name: Rotate API Key for CI/CD on: - - workflow_dispatch: - - schedule: - - cron: '0 0 * * *' + workflow_dispatch: + schedule: + - cron: '0 0 * * *' jobs: rotate: name: Rotate API Key