From a3f2d013663a129eab88c5665bf35a8b80fc9310 Mon Sep 17 00:00:00 2001 From: GregJCook <106106558+GregJCook@users.noreply.github.com> Date: Fri, 9 Sep 2022 12:42:34 -0400 Subject: [PATCH 1/4] Create codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 72 +++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..1e205c06 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,72 @@ +# 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: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '31 14 * * 4' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: 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://aka.ms/codeql-docs/language-support + + 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 }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # 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 From 6ea8a6a1314f0e0992800a91cc482305afbbc131 Mon Sep 17 00:00:00 2001 From: GregJCook <106106558+GregJCook@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:24:42 -0400 Subject: [PATCH 2/4] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 1e205c06..17f50f78 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: [ "main", "develop" ] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: [ "main", "develop" ] schedule: - cron: '31 14 * * 4' From 8a64188ee461b745a1c22a56fbe56c820dbf7bcb Mon Sep 17 00:00:00 2001 From: GregJCook <106106558+GregJCook@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:32:40 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e88fcc50..c14d55f3 100644 --- a/README.md +++ b/README.md @@ -190,3 +190,5 @@ Ready to talk about advanced security features for GitHub Enterprise? [Contact S Check out [GitHub's Security feature page](https://github.com/features/security) for more security features embedded into GitHub. Check out the Code Scanning [documentation](https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/about-code-scanning) for additional configuration options and technical details. + +## Quick code change From d5dcf3d0e74ff4e5c370c1cc48439f6a6c90be91 Mon Sep 17 00:00:00 2001 From: GregJCook <106106558+GregJCook@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:35:41 -0400 Subject: [PATCH 4/4] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index c14d55f3..e88fcc50 100644 --- a/README.md +++ b/README.md @@ -190,5 +190,3 @@ Ready to talk about advanced security features for GitHub Enterprise? [Contact S Check out [GitHub's Security feature page](https://github.com/features/security) for more security features embedded into GitHub. Check out the Code Scanning [documentation](https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/about-code-scanning) for additional configuration options and technical details. - -## Quick code change