grafana / shared-workflows

A public-facing, centralized place to store reusable workflows used by Grafana Labs.
GNU Affero General Public License v3.0
9 stars 15 forks source link

feat: add validate-policy-bot-action #497

Closed Elfo404 closed 2 weeks ago

Elfo404 commented 1 month ago

Related to #478 (does not fix it, see https://github.com/grafana/shared-workflows/pull/497#issuecomment-2455223956)

adds a validate-policy-bot-action that can be used to validate a Policy Bot config file.

Open points: We should probably distribute the policy bot generator from deployment_tools so that other repos can use it without copy-pasting it. If we do so, we could also include drift detection in this action, and if we do so, then this action should run also on any other workflow file change.

iainlane commented 4 weeks ago

I would move that out to a public repo (probably its own one?), that'd be great

iainlane commented 3 weeks ago

One thing I just realised. Since we use merge queues in this repository the policy bot isn't going to be very helpful. We should still provide a shared workflow for folks that don't use them, but I'm not sure about the generated one in this PR. 🤔

https://github.com/palantir/policy-bot/issues/800

Elfo404 commented 2 weeks ago

@iainlane Removed the check for this repo and updated the README of the action. mind a sanity check?