diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 916c874..2219b38 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,11 +1,10 @@ -name: checks - +name: "Checks" on: pull_request: push: branches: - - master + - main jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..45c9fb7 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + pull_request: + branches: + - main + schedule: + - cron: "0 8 * * 6" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ javascript ] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}" \ No newline at end of file diff --git a/lerna.json b/lerna.json index fbfb0fc..3f2344c 100644 --- a/lerna.json +++ b/lerna.json @@ -6,7 +6,7 @@ "createRelease": "github", "conventionalCommits": true, "allowBranch": [ - "master" + "main" ], "message": "chore(release): publish" }