From 36518ac407b4b4c7461dda34dd74809e0fb87205 Mon Sep 17 00:00:00 2001 From: Dmitry Mamontov Date: Sun, 3 Apr 2022 19:14:13 +0300 Subject: [PATCH] update workflow --- .github/workflows/codeql-analysis.yml | 36 +++++++++++++++++++ .../{validate.yml => hass-hacs-validate.yml} | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql-analysis.yml rename .github/workflows/{validate.yml => hass-hacs-validate.yml} (89%) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..a2850bc --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,36 @@ +name: "CodeQL" + +on: + push: + pull_request: + schedule: + - cron: '22 20 * * 6' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 \ No newline at end of file diff --git a/.github/workflows/validate.yml b/.github/workflows/hass-hacs-validate.yml similarity index 89% rename from .github/workflows/validate.yml rename to .github/workflows/hass-hacs-validate.yml index 902fdcb..0bdf854 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/hass-hacs-validate.yml @@ -1,4 +1,4 @@ -name: Validate +name: Validate HASS and HACS on: push: