Skip to content

Merge pull request #59 from samtkit/java-21 #492

Merge pull request #59 from samtkit/java-21

Merge pull request #59 from samtkit/java-21 #492

name: "Security Scanning"
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
# The CodeQL Action requires security write permission
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: kotlin
queries: security-and-quality
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew --no-daemon build -x test
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2