Skip to content

CI: set permissions to read only #11

CI: set permissions to read only

CI: set permissions to read only #11

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: read-all
jobs:
clang-format:
runs-on: intel-ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update
sudo apt -y install clang-format
- name: Lint
run: |
find . -type f | grep -P ".*\.(c|cpp|h|hpp)\b" | xargs clang-format -style=file --dry-run -Werror