From 913657f5c971bcd4c3377fabead7c5247d537200 Mon Sep 17 00:00:00 2001 From: Dominik Mengelt Date: Fri, 28 Jun 2024 14:50:30 +0200 Subject: [PATCH] updated GH action to delete GCP key --- .github/workflows/revoke-gcp-key.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/revoke-gcp-key.yml b/.github/workflows/revoke-gcp-key.yml index 5c21fb01..cfb65984 100644 --- a/.github/workflows/revoke-gcp-key.yml +++ b/.github/workflows/revoke-gcp-key.yml @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - name: Revoke GCP Key on: @@ -21,5 +20,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Revoke Firebase Token - run: curl -H "Content-type:application/x-www-form-urlencoded" -s https://accounts.google.com/o/oauth2/revoke?token=${{secrets.GCP_SA_KEY}} + - name: Use Google Cloud CLI + uses: google-github-actions/setup-gcloud@v2 + with: + project_id: ${{ secrets.GCP_PROJECT_ID }} + - name: Revoke GCP key + run: gcloud revoke ${{ secrets.GCP_SA_EMAIL }} \ No newline at end of file