OSDN Git Service

Create njsscan-analysis.yml
authorNeko7sora <75793267+Neko7sora@users.noreply.github.com>
Wed, 4 Aug 2021 04:25:31 +0000 (13:25 +0900)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 04:25:31 +0000 (13:25 +0900)
.github/workflows/njsscan-analysis.yml [new file with mode: 0644]

diff --git a/.github/workflows/njsscan-analysis.yml b/.github/workflows/njsscan-analysis.yml
new file mode 100644 (file)
index 0000000..6fae475
--- /dev/null
@@ -0,0 +1,30 @@
+# This workflow integrates njsscan with GitHub's Code Scanning feature
+# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications
+
+name: njsscan sarif
+
+on:
+  push:
+    branches: [ develop ]
+  pull_request:
+    # The branches below must be a subset of the branches above
+    branches: [ develop ]
+  schedule:
+    - cron: '15 0 * * 5'
+
+jobs:
+  njsscan:
+    runs-on: ubuntu-latest
+    name: njsscan code scanning
+    steps:
+    - name: Checkout the code
+      uses: actions/checkout@v2
+    - name: nodejsscan scan
+      id: njsscan
+      uses: ajinabraham/njsscan-action@master
+      with:
+        args: '. --sarif --output results.sarif || true'
+    - name: Upload njsscan report
+      uses: github/codeql-action/upload-sarif@v1
+      with:
+        sarif_file: results.sarif