Skip to content

Pin GitHub Actions to full-length commit SHAs #41

Pin GitHub Actions to full-length commit SHAs

Pin GitHub Actions to full-length commit SHAs #41

Workflow file for this run

name: clang-format
on:
pull_request:
branches:
- main
jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Set up Python 3.12
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install clang-format==20.1.8 ripgrep==14.1.0
- name: Running clang-format
run: |
rg . --type cpp --type c --files-with-matches \
| xargs clang-format --dry-run --Werror