Skip to content

Commit

Permalink
codeql security scan update (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrabine authored Apr 21, 2023
1 parent bfa5869 commit 7f05673
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 29 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: security

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "51 9 * * 5"

jobs:
scan:
runs-on: ubuntu-22.04

steps:
- name: Install dependencies
run: sudo apt-get install gpiod libgpiod-dev

- name: Checkout
uses: actions/[email protected]

- name: Perform codacy analysis
uses: codacy/[email protected]
with:
project-token: ${{secrets.CODACY_PROJECT_TOKEN}}
verbose: true
output: results.sarif
format: sarif
gh-code-scanning-compat: true
max-allowed-issues: 2147483647

- name: Upload codacy scan report to github
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

- name: Initialize codeql
uses: github/codeql-action/init@v2

- name: Configure
run: cmake -B _lgtm_build_dir -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build _lgtm_build_dir --config Release

- name: Perform codeql analysis
uses: github/codeql-action/analyze@v2
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# pifan
[![Build Status](https://github.com/mrabine/pifan/workflows/build/badge.svg)](https://github.com/mrabine/pifan/actions?query=workflow%3Abuild)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/mrabine/pifan.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/mrabine/pifan/alerts/)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/mrabine/pifan.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/mrabine/pifan/context:cpp)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/aa8d30be1e104cdebdaf1861de8a8db1)](https://www.codacy.com/gh/mrabine/pifan/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mrabine/pifan&utm_campaign=Badge_Grade)
[![Security Status](https://github.com/mrabine/pifan/workflows/security/badge.svg)](https://github.com/mrabine/pifan/security/code-scanning)
[![Codacy Grade](https://app.codacy.com/project/badge/Grade/aa8d30be1e104cdebdaf1861de8a8db1)](https://www.codacy.com/gh/mrabine/pifan/dashboard?utm_source=github.com&utm_medium=referral&utm_content=mrabine/pifan&utm_campaign=Badge_Grade)
[![GitHub Releases](https://img.shields.io/github/release/mrabine/pifan.svg)](https://github.com/mrabine/pifan/releases/latest)
[![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mrabine/pifan/blob/main/LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3

0 comments on commit 7f05673

Please sign in to comment.