github.com/grafana/synthetic-monitoring-agent@v0.64.2/.github/workflows/validate-policy-bot-config.yml (about) 1 name: Validate Policy Bot Config 2 3 on: 4 pull_request: 5 paths: 6 - ".policy.yml" 7 8 push: 9 branches: 10 - main 11 paths: 12 - ".policy.yml" 13 14 permissions: 15 contents: none 16 17 jobs: 18 validate: 19 name: Validate policy bot config 20 21 runs-on: ubuntu-latest 22 23 permissions: 24 contents: read 25 id-token: write 26 27 steps: 28 - name: Checkout code 29 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 30 with: 31 persist-credentials: false 32 33 - name: Validate policy bot config 34 run: | 35 curl \ 36 --silent \ 37 --fail-with-body \ 38 --request PUT \ 39 --upload-file .policy.yml \ 40 https://github-policy-bot.grafana-ops.net/api/validate