diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..e80ebd7 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,48 @@ +name: CodeQL + +on: + pull_request: + branches: + - main + push: + branches: + - main + schedule: + - cron: '31 7 * * 3' + +permissions: + actions: read + checks: write + contents: read + security-events: write + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + language: + - TypeScript + + steps: + - name: Checkout + id: checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + id: initialize + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + source-root: src + + - name: Autobuild + id: autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + id: analyze + uses: github/codeql-action/analyze@v3 \ No newline at end of file diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 7d44117..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Lint Codebase - -on: - pull_request: - branches: - - main - push: - branches: - - main - -permissions: - contents: read - packages: read - statuses: write - -jobs: - lint: - name: Lint Codebase - runs-on: ubuntu-latest - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - id: setup-node - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - cache: npm - - - name: Install Dependencies - id: install - run: npm ci - - - name: Lint Codebase - id: super-linter - uses: super-linter/super-linter/slim@v7 - env: - DEFAULT_BRANCH: main - FILTER_REGEX_EXCLUDE: dist/**/* - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_ALL_CODEBASE: true - VALIDATE_JAVASCRIPT_STANDARD: false - VALIDATE_JSCPD: false - VALIDATE_TYPESCRIPT_STANDARD: false \ No newline at end of file