aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-11-06 20:02:33 -0600
committerChristian Cleberg <hello@cleberg.net>2024-11-06 20:02:33 -0600
commit47de3e51b31da0e0fd90e9b6ed92309bb2f34f9d (patch)
tree1e070788a3a6168bd00979ed12a99dee368be28c
parent4e175f8ae5f50cb2465c3973bc02021e8a72667a (diff)
downloadaudit-tools-47de3e51b31da0e0fd90e9b6ed92309bb2f34f9d.tar.gz
audit-tools-47de3e51b31da0e0fd90e9b6ed92309bb2f34f9d.tar.bz2
audit-tools-47de3e51b31da0e0fd90e9b6ed92309bb2f34f9d.zip
add pysa
-rw-r--r--.github/workflows/pysa.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/pysa.yml b/.github/workflows/pysa.yml
new file mode 100644
index 0000000..a60a99f
--- /dev/null
+++ b/.github/workflows/pysa.yml
@@ -0,0 +1,50 @@
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+# This workflow integrates Python Static Analyzer (Pysa) with
+# GitHub's Code Scanning feature.
+#
+# Python Static Analyzer (Pysa) is a security-focused static
+# analysis tool that tracks flows of data from where they
+# originate to where they terminate in a dangerous location.
+#
+# See https://pyre-check.org/docs/pysa-basics/
+
+name: Pysa
+
+on:
+ workflow_dispatch:
+ push:
+ branches: [ $default-branch, $protected-branches ]
+ pull_request:
+ branches: [ $default-branch ]
+ schedule:
+ - cron: $cron-weekly
+
+permissions:
+ contents: read
+
+jobs:
+ pysa:
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - name: Run Pysa
+ uses: facebook/pysa-action@f46a63777e59268613bd6e2ff4e29f144ca9e88b
+ with:
+ # To customize these inputs:
+ # See https://github.com/facebook/pysa-action#inputs
+ repo-directory: './'
+ requirements-path: 'requirements.txt'
+ infer-types: true
+ include-default-sapp-filters: true