Update dependency StyraInc/regal to v0.29.2 #820
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: Check POLICIES.md is up-to-date | |
on: [push, pull_request] | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
konstraint_doc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Generate konstraint docs | |
uses: redhat-cop/github-actions/confbatstest@1a584131f8a335296e866d1fb0988870ca83aefb # v4.3 | |
with: | |
raw: konstraint doc -o POLICIES.md | |
- name: Check if there are changes to POLICIES.md | |
id: changes | |
run: echo "changed=$(git status --porcelain POLICIES.md | wc -l)" >> $GITHUB_OUTPUT | |
- name: Fail if POLICIES.md changes found | |
if: steps.changes.outputs.changed >= 1 | |
run: | | |
echo "Uncommited changes to POLICIES.md exist. Failing." | |
echo | |
git status --porcelain | |
git --no-pager diff POLICIES.md | |
exit 1 | |
- name: Link checker | |
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # 1.0.15 |