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-03 06:02:47 +00:00
committed by GitHub
parent 80ce491734
commit 67a403311f
+22
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