codeql-analysis.yml (hoppscotch-2.2.1) | : | codeql-analysis.yml (hoppscotch-3.0.0) | ||
---|---|---|---|---|
name: "Code Scanning - Action" | # For most projects, this workflow file will not need changing; you simply need | |||
# 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. | ||||
# | ||||
# ******** NOTE ******** | ||||
# We have attempted to detect the languages in your repository. Please check | ||||
# the `language` matrix defined below to confirm you have the correct set of | ||||
# supported CodeQL languages. | ||||
# | ||||
name: "CodeQL" | ||||
on: | on: | |||
push: | push: | |||
branches: [main] | branches: [ main ] | |||
pull_request: | pull_request: | |||
branches: [main] | # The branches below must be a subset of the branches above | |||
branches: [ main ] | ||||
schedule: | schedule: | |||
# ┌───────────── minute (0 - 59) | - cron: '39 7 * * 2' | |||
# │ ┌───────────── 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' | ||||
jobs: | jobs: | |||
CodeQL-Build: | analyze: | |||
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | name: Analyze | |||
runs-on: ubuntu-latest | runs-on: ubuntu-latest | |||
permissions: | permissions: | |||
# required for all workflows | ||||
security-events: write | ||||
# only required for workflows in private repositories | ||||
actions: read | actions: read | |||
contents: read | contents: read | |||
security-events: write | ||||
strategy: | ||||
fail-fast: false | ||||
matrix: | ||||
language: [ 'javascript' ] | ||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python | ||||
', 'ruby' ] | ||||
# Learn more about CodeQL language support at https://git.io/codeql-lang | ||||
uage-support | ||||
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 | |||
# Override language selection by uncommenting this and choosing your lan | with: | |||
guages | # Run extended queries including queries using machine learning | |||
# with: | queries: security-extended | |||
# languages: go, javascript, csharp, python, cpp, java | languages: ${{ matrix.language }} | |||
# If you wish to specify custom queries, you can do so here or in a conf | ||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ig file. | |||
# If this step fails, then you should remove it and run the build manually | # By default, queries listed here will override any specified in a confi | |||
(see below). | g file. | |||
- name: Autobuild | # Prefix the list here with "+" to use these queries and those in the co | |||
uses: github/codeql-action/autobuild@v1 | nfig file. | |||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||||
# ℹ️ Command-line programs to run using the OS shell. | ||||
# 📚 https://git.io/JvXDl | # 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 ( | ||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following | see below) | |||
# three lines and modify them (or add more) to build your code if your | - name: Autobuild | |||
# project uses a compiled language | uses: github/codeql-action/autobuild@v1 | |||
#- run: | | # ℹ️ Command-line programs to run using the OS shell. | |||
# make bootstrap | # 📚 https://git.io/JvXDl | |||
# make release | ||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following thr | ||||
ee lines | ||||
# 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. 11 change blocks. | ||||
46 lines changed or deleted | 62 lines changed or added |