Skip to content

Prevent path traversal fix #9

Prevent path traversal fix

Prevent path traversal fix #9

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for git describe --tags
- name: Install dependencies
run: sudo apt-get install -y autoconf automake libtool bear
- name: Configure project
run: |
./autogen.sh
./configure --enable-stubs
- name: Generate compilation database
run: bear -- make -j$(nproc)
- name: Run clang-tidy
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: '' # disable clang-format
tidy-checks: '-*,bugprone-*,clang-analyzer-core.*,clang-analyzer-deadcode.*,clang-analyzer-nullability.*,clang-analyzer-security.FloatLoopCounter,clang-analyzer-unix.*,-clang-analyzer-security.insecureAPI.*'
files-changed-only: ${{ github.event_name == 'pull_request' }}
database: '.'
extensions: 'c'
thread-comments: ${{ github.event_name == 'pull_request' }}
step-summary: true
file-annotations: true
- name: Fail if issues found
if: steps.linter.outputs.checks-failed > 0
run: exit 1