aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-05-15 23:14:23 +0200
committerGitHub <noreply@github.com>2025-05-15 23:14:23 +0200
commitffff52676aedccf0d5a34fb76b84e0d138304c8a (patch)
treebc1333f92d18897cb340820c7d11eef164c7f6b0 /.github/workflows
parentbcd815dec243493fbd71d828ac27076619658c66 (diff)
Create codeql.yml
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/codeql.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..738475c
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,51 @@
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ "main" ]
+ schedule:
+ - cron: '18 6 * * 3'
+
+jobs:
+ analyze:
+ name: Analyze (${{ matrix.language }})
+ # Runner size impacts CodeQL analysis time. To learn more, please see:
+ # - https://gh.io/recommended-hardware-resources-for-running-codeql
+ # - https://gh.io/supported-runners-and-hardware-resources
+ # - https://gh.io/using-larger-runners (GitHub.com only)
+ # Consider using larger runners or machines with greater resources for possible analysis time improvements.
+ runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
+ permissions:
+ # required for all workflows
+ security-events: write
+
+ # required to fetch internal or private CodeQL packs
+ packages: read
+
+ # only required for workflows in private repositories
+ actions: read
+ contents: read
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: csharp
+ build-mode: none
+ - language: javascript-typescript
+ build-mode: none
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v3
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build-mode }}
+ queries: security-extended
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v3
+ with:
+ category: "/language:${{matrix.language}}"