chore(anomaly-detection): disable AD on breakpoint (#1620) #2987
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Deployment Pipelines | |
on: | |
pull_request: | |
push: | |
branches: [main, test-me-*] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
files-changed: | |
name: files-changed | |
runs-on: ubuntu-latest | |
# Map a step output to a job output | |
outputs: | |
gocd: ${{ steps.changes.outputs.gocd }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check for relevant file changes | |
uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | |
id: changes | |
with: | |
filters: | | |
gocd: | |
- 'gocd/**' | |
validate: | |
if: needs.files-changed.outputs.gocd == 'true' | |
needs: files-changed | |
name: Validate GoCD Pipelines | |
runs-on: ubuntu-latest | |
# required for google auth | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- uses: actions/checkout@v3 | |
- id: 'auth' | |
uses: google-github-actions/auth@v1 | |
with: | |
workload_identity_provider: 'projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool' | |
service_account: '[email protected]' | |
token_format: 'id_token' | |
id_token_audience: '610575311308-9bsjtgqg4jm01mt058rncpopujgk3627.apps.googleusercontent.com' | |
id_token_include_email: true | |
- uses: getsentry/action-gocd-jsonnet@v1 | |
with: | |
jb-install: true | |
jsonnet-dir: gocd/templates | |
generated-dir: gocd/generated-pipelines | |
- uses: getsentry/action-validate-gocd-pipelines@v1 | |
with: | |
configrepo: seer__main | |
gocd_access_token: ${{ secrets.GOCD_ACCESS_TOKEN }} | |
google_oidc_token: ${{ steps.auth.outputs.id_token }} |