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: