ci: .github/workflows: add staticmajor to catch leaking resources (#13392)

Brings in a static analyzer that catches leaking resources like
unclosed file handles, networking handles etc that can't easily
be caught except in very critical code reviews as well as a bunch
of other static analyzers that Orijtech Inc produces.
This commit is contained in:
Emmanuel T Odeke 2022-10-02 23:02:47 -07:00 committed by GitHub
parent 80ce491734
commit 67a403311f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

22
.github/workflows/staticmajor.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Staticmajor static analyzer to catch leaking resources & other bad code patterns
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
run_staticmajor:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Staticmajor action
id: staticmajor
uses: orijtech/staticmajor-action@main
with:
packages: ./...
resleak: true
structslop: false
tests: false