feat: Add policy bot configuration #1
Workflow file for this run
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 Policy Bot Config | |
on: | |
pull_request: | |
paths: | |
- ".policy.yml" | |
push: | |
branches: | |
- main | |
paths: | |
- ".policy.yml" | |
jobs: | |
validate: | |
name: Validate policy bot config | |
runs-on: ubuntu-arm64-small | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persists-credentials: false | |
- name: Validate policy bot config | |
run: | | |
curl \ | |
--silent \ | |
--fail-with-body \ | |
--request PUT \ | |
--upload-file .policy.yml \ | |
https://github-policy-bot.grafana-ops.net/api/validate |