diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-01 13:16:55 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-01 13:16:55 +0530 |
| commit | 082f076d071cf4a4b9e06318a4471873f8722890 (patch) | |
| tree | b3796a0fb897b70ccd2a4ef391e81b387cf8913b /.github/workflows | |
| parent | 35e61131b391fed28233372ecd1124c607c0a13c (diff) | |
| download | aniwatch-api-082f076d071cf4a4b9e06318a4471873f8722890.tar.xz aniwatch-api-082f076d071cf4a4b9e06318a4471873f8722890.zip | |
ci: added codeql analysis
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/codeql-analysis.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..0d363d0 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,53 @@ +name: "CodeQL" + +on: + push: + branches: ["main"] + pull_request: + # The branches below must be a subset of the branches above + branches: ["main"] + schedule: + - cron: "16 10 * * 2" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ["typescript"] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # queries: security-extended,security-and-quality + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # ��� See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 |
