Skip to content

Commit

Permalink
Merge pull request #1 from vishal-deriv/patch-1
Browse files Browse the repository at this point in the history
Update sast.yaml
  • Loading branch information
shantanug-deriv authored Feb 9, 2024
2 parents 313a741 + 91cc9eb commit 6590f96
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,29 @@ on: push
# branches:
# - "*"

name: Static analysis

on: push

jobs:
static_analysis:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Clone libtins
run: |
git clone https://github.com/the-tcpdump-group/libtins.git vendor/libtins
- name: Setup OpenSSL
run: |
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar xzf openssl-1.1.1g.tar.gz
mv openssl-1.1.1g ./openssl-OpenSSL_1_1_1g
- name: setup init_script
- name: Setup init_script
shell: bash
run: |
echo "#!/bin/bash
Expand All @@ -32,25 +47,15 @@ jobs:
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list
apt update && apt upgrade -y
apt install -y libvulkan1 mesa-vulkan-drivers vulkan-tools" > init_script.sh
chmod +x init_script.sh
- name: Run static analysis
uses: JacobDomagala/StaticAnalysis@master
with:
language: c++

# Exclude any issues found in ${Project_root_dir}/lib
exclude_dir: lib

use_cmake: true

# Additional apt packages that need to be installed before running Cmake
apt_pckgs: software-properties-common libglu1-mesa-dev freeglut3-dev mesa-common-dev

# Additional script that will be run (sourced) AFTER 'apt_pckgs' and before running Cmake
init_script: init_script.sh

# (Optional) clang-tidy args
clang_tidy_args: -checks='*,fuchsia-*,google-*,zircon-*,abseil-*,modernize-use-trailing-return-type'

# (Optional) cppcheck args
cppcheck_args: --enable=all --suppress=missingInclude

0 comments on commit 6590f96

Please sign in to comment.