Skip to content

Commit

Permalink
updated GH action to delete GCP key
Browse files Browse the repository at this point in the history
  • Loading branch information
dmengelt committed Jun 28, 2024
1 parent 17e8f84 commit 913657f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/revoke-gcp-key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 913657f

Please sign in to comment.