Skip to content

Add CodeQL and OpenSSF Scorecard scanning #1

Add CodeQL and OpenSSF Scorecard scanning

Add CodeQL and OpenSSF Scorecard scanning #1

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly Monday 06:00 UTC
- cron: '0 6 * * 1'
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: java-kotlin
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@26dfab68fffc1cbc36c56970c32f0e53cf1fcc01 # v4.37.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@26dfab68fffc1cbc36c56970c32f0e53cf1fcc01 # v4.37.2
with:
category: '/language:${{ matrix.language }}'