codeql-analysis.yml (hoppscotch-2.0.0) | : | codeql-analysis.yml (hoppscotch-2.1.0) | ||
---|---|---|---|---|
# For most projects, this workflow file will not need changing; you simply need | name: "Code Scanning - Action" | |||
# to commit it to your repository. | ||||
# | ||||
# You may wish to alter this file to override the set of languages analyzed, | ||||
# or to provide custom queries or build logic. | ||||
name: "CodeQL" | ||||
on: | on: | |||
push: | push: | |||
branches: [main] | branches: [main] | |||
pull_request: | pull_request: | |||
# The branches below must be a subset of the branches above | ||||
branches: [main] | branches: [main] | |||
schedule: | schedule: | |||
# ┌───────────── minute (0 - 59) | ||||
# │ ┌───────────── hour (0 - 23) | ||||
# │ │ ┌───────────── day of the month (1 - 31) | ||||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||||
# │ │ │ │ │ | ||||
# │ │ │ │ │ | ||||
# │ │ │ │ │ | ||||
# * * * * * | ||||
- cron: '0 0 * * 6' | - cron: '0 0 * * 6' | |||
jobs: | jobs: | |||
analyze: | CodeQL-Build: | |||
name: Analyze | # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | |||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | |||
strategy: | permissions: | |||
fail-fast: false | # required for all workflows | |||
matrix: | security-events: write | |||
# Override automatic language detection by changing the below list | ||||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'p | # only required for workflows in private repositories | |||
ython'] | actions: read | |||
language: ['javascript'] | contents: read | |||
# Learn more... | ||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and | ||||
-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-det | ||||
ection | ||||
steps: | steps: | |||
- name: Checkout repository | - name: Checkout repository | |||
uses: actions/checkout@v2 | uses: actions/checkout@v2 | |||
# Initializes the CodeQL tools for scanning. | # Initializes the CodeQL tools for scanning. | |||
- name: Initialize CodeQL | - name: Initialize CodeQL | |||
uses: github/codeql-action/init@v1 | uses: github/codeql-action/init@v1 | |||
with: | # Override language selection by uncommenting this and choosing your lan | |||
languages: ${{ matrix.language }} | guages | |||
# If you wish to specify custom queries, you can do so here or in a conf | # with: | |||
ig file. | # languages: go, javascript, csharp, python, cpp, java | |||
# By default, queries listed here will override any specified in a confi | ||||
g file. | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | |||
# Prefix the list here with "+" to use these queries and those in the co | # If this step fails, then you should remove it and run the build manually | |||
nfig file. | (see below). | |||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | - name: Autobuild | |||
uses: github/codeql-action/autobuild@v1 | ||||
# 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 ( | # ℹ️ Command-line programs to run using the OS shell. | |||
see below) | # 📚 https://git.io/JvXDl | |||
- name: Autobuild | ||||
uses: github/codeql-action/autobuild@v1 | # ✏️ If the Autobuild fails above, remove it and uncomment the following | |||
# three lines and modify them (or add more) to build your code if your | ||||
# ℹ️ Command-line programs to run using the OS shell. | # project uses a compiled language | |||
# 📚 https://git.io/JvXDl | ||||
#- run: | | ||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following thr | # make bootstrap | |||
ee lines | # make release | |||
# and modify them (or add more) to build your code if your project | ||||
# uses a compiled language | ||||
#- run: | | ||||
# make bootstrap | ||||
# make release | ||||
- name: Perform CodeQL Analysis | - name: Perform CodeQL Analysis | |||
uses: github/codeql-action/analyze@v1 | uses: github/codeql-action/analyze@v1 | |||
End of changes. 8 change blocks. | ||||
52 lines changed or deleted | 45 lines changed or added |