Skip to content

Commit

Permalink
👷 Add CodeQL CI Pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Feb 27, 2024
1 parent ab29239 commit ac9b9ba
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 65 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🔍️ CodeQL

on: [push, pull_request, workflow_dispatch]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
analyse:
runs-on: ${{ matrix.os }}
permissions:
security-events: write
strategy:
matrix:
os:
- ubuntu-latest
language:
- javascript-typescript

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Initialise 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}}"
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@next/eslint-plugin-next": "^14.1.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/react": "^18.2.60",
"@types/react-dom": "^18.2.19",
"autoprefixer": "^10.4.17",
"eslint": "^8.57.0",
Expand All @@ -57,6 +57,6 @@
"prettier-plugin-tailwindcss": "^0.5.11",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"typescript-eslint": "^7.0.2"
"typescript-eslint": "^7.1.0"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"solhint": "^4.1.1",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"typescript-eslint": "^7.1.0"
}
}
Loading

0 comments on commit ac9b9ba

Please sign in to comment.