From 7d2b585642e356a1d39bff356316aa26f9493e97 Mon Sep 17 00:00:00 2001 From: sitdisch Date: Thu, 14 Apr 2022 14:03:16 +0200 Subject: [PATCH] core: default branch changed & codeql workflow updated --- .github/workflows/codeql-analysis.yml | 26 ++++++++++++++------------ README.md | 2 +- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 62c7bef..2be092a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,39 +8,41 @@ # 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. -# ******** NOTE ******** - +# name: "CodeQL" on: push: - branches: [ master ] + branches: [ 'main', 'gh-pages' ] # pull_request: # The branches below must be a subset of the branches above - # branches: [ master ] + # branches: [ main ] # schedule: - # - cron: '40 11 * * 3' + # - cron: '31 10 * * 3' 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' ] - # Learn more... - # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Learn more about CodeQL language support at https://git.io/codeql-language-support steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + 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. @@ -51,7 +53,7 @@ jobs: # 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@v1 + uses: github/codeql-action/autobuild@v2 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -65,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/README.md b/README.md index f38e9e9..e5e1bc1 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ https://user-images.githubusercontent.com/16251546/162407671-f5204a55-326a-40e3- ## | Feature Overview -### [Branch: master](https://github.com/MyThemeWay/mtw-boilerplate-charts/tree/master "Check it out") +### [Branch: main](https://github.com/MyThemeWay/mtw-boilerplate-charts/tree/main "Check it out") Node.js esbuild