diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..c51b19c --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,36 @@ +name: CodeQL + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "0 0 * * 0" # Run weekly at midnight on Sunday + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + matrix: + language: ["rust"] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initialize the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + # Perform the CodeQL analysis. + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/${{ github.event_name }}"