diff options
author | XhmikosR <xhmikosr@gmail.com> | 2022-11-12 10:22:25 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2022-11-12 10:22:41 +0300 |
commit | 930ce651066789f6306465fad8a48abf521bd017 (patch) | |
tree | 89625048898a2fbcb599235d9a7c0b78a12b89ce | |
parent | b2f73803e27b1d0784852f06e448782a3abcd86e (diff) |
Add CodeQL Action
-rw-r--r-- | .github/workflows/codeql.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..21f00480 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: "CodeQL" + +on: + push: + branches: + - main + - "!dependabot/**" + pull_request: + branches: + - main + - "!dependabot/**" + schedule: + - cron: "0 0 * * 0" + workflow_dispatch: + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: "javascript" + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:javascript" |