Skip to content

testing pre-commit hooks #298

testing pre-commit hooks

testing pre-commit hooks #298

Workflow file for this run

name: 'Cloudbot'
on:
- pull_request
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
jobs:
phone-home:
name: 'Cloudbot Ingest PR'
runs-on: ubuntu-latest
steps:
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}'
- name: "Set up Cloud SDK"
uses: google-github-actions/setup-gcloud@v2
with:
install_components: 'gke-gcloud-auth-plugin'
# - name: "Connect to cluster"
# uses: google-github-actions/get-gke-credentials@v0
# with:
# cluster_name: ps-devsecops-gke
# location: us-central1-a
# project_id: '${{ secrets.PROJECT_ID }}'
# use_auth_provider: true
- name: Use gcloud CLI
run: |
curl --request POST --header "Content-Type:application/json" --header "Authorization: Bearer $(gcloud auth print-identity-token)" --data "{\"message\": \"Pull request number $PR_NUMBER by $GITHUB_ACTOR on repository $GITHUB_REPOSITORY\", \"pr_number\": \"$PR_NUMBER\", \"user\": \"$GITHUB_ACTOR\", \"repo\": \"$GITHUB_REPOSITORY\", \"ref\": \"$GITHUB_REF\", \"commit_sha\": \"$GITHUB_SHA\"}" https://us-central1-gcp-gcs-pso.cloudfunctions.net/cloudbot-franklin