From 4524432e413fa4fe9b2ce4a0f6c3016b52386677 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 20 Apr 2024 01:57:48 +0530 Subject: [PATCH] chore: format and adjust devskim options --- .github/workflows/ci.yaml | 19 +++++++++++++++++++ .github/workflows/devskim.yml | 30 ------------------------------ 2 files changed, 19 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/devskim.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f92e741..2eac08d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,8 @@ on: pull_request: branches: [main] types: [opened, synchronize, reopened] + schedule: + - cron: '0 0 * * *' workflow_dispatch: concurrency: @@ -44,3 +46,20 @@ jobs: bun-version: latest - run: pnpm lint && [ -z "$(git status --porcelain)" ] - run: pnpm test:deno && pnpm test:bun + + devskim: + name: devskim + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - uses: actions/checkout@v4 + - uses: microsoft/devskim-action@v1 + with: + directory-to-scan: src + - uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: devskim-results.sarif + category: devskim diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml deleted file mode 100644 index ae560e5..0000000 --- a/.github/workflows/devskim.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: DevSkim - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - schedule: - - cron: '41 20 * * 3' - workflow_dispatch: - -jobs: - lint: - name: DevSkim - runs-on: ubuntu-20.04 - permissions: - actions: read - contents: read - security-events: write - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Run DevSkim scanner - uses: microsoft/DevSkim-Action@v1 - - - name: Upload DevSkim scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: devskim-results.sarif