From 46ec8de5db4c15c3adf8fce9b20f52e6a73fa3e5 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:21:47 +0200 Subject: [PATCH 1/3] add storybook eslint plugin to extensions --- src/Umbraco.Web.UI.Client/.eslintrc.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Web.UI.Client/.eslintrc.json b/src/Umbraco.Web.UI.Client/.eslintrc.json index a3bfe0790b..0d13a00b4d 100644 --- a/src/Umbraco.Web.UI.Client/.eslintrc.json +++ b/src/Umbraco.Web.UI.Client/.eslintrc.json @@ -23,6 +23,7 @@ "plugin:@typescript-eslint/recommended", "plugin:lit/recommended", "plugin:lit-a11y/recommended", + "plugin:storybook/recommended", "prettier" ], "env": { From 6cd687dc4e66d6243346f71048af33143eab49c6 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:23:52 +0200 Subject: [PATCH 2/3] test build on main branch --- src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml b/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml index f5f425f12f..23e2c23745 100644 --- a/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml +++ b/src/Umbraco.Web.UI.Client/.github/workflows/build_test.yml @@ -4,6 +4,8 @@ name: Build and test on: + push: + branches: [ main ] pull_request: branches: [ main ] From 3a4664a816dfb7cd6f38af220dfeb052890fbf5e Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 4 Aug 2022 11:25:54 +0200 Subject: [PATCH 3/3] Create codeql.yml --- .../.github/workflows/codeql.yml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/.github/workflows/codeql.yml diff --git a/src/Umbraco.Web.UI.Client/.github/workflows/codeql.yml b/src/Umbraco.Web.UI.Client/.github/workflows/codeql.yml new file mode 100644 index 0000000000..796d548755 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/.github/workflows/codeql.yml @@ -0,0 +1,56 @@ +# 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: '33 2 * * 1' + +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 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2