Skip to content

Update github/codeql-action action to v3.28.10 #924

Update github/codeql-action action to v3.28.10

Update github/codeql-action action to v3.28.10 #924

Workflow file for this run

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@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Generate konstraint docs
uses: redhat-cop/github-actions/confbatstest@561af5e610560aef3210ca7a08fe73b2add97648 # v4.5
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@1b916f2cf6c36510a6059943104e3c42ce6c16bc # 1.0.16