Skip to content

Commit

Permalink
chore(security): Setup CodeQL (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Nov 17, 2023
1 parent 70fffcc commit 5501f8b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CodeQL

on:
push:
branches: main
pull_request:
branches: main
schedule:
- cron: 23 2 * * 0

concurrency:
group: codeql-${{ github.ref_name }}
cancel-in-progress: true

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: oracle
java-version: 21
check-latest: true
- uses: gradle/gradle-build-action@v2
- uses: github/codeql-action/init@v2
with:
languages: java-kotlin
- run: ./gradlew build -x check
- uses: github/codeql-action/analyze@v2
with:
category: /language:java-kotlin
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![CI](https://github.com/JoseLion/atomic-flyway/actions/workflows/ci.yml/badge.svg)](https://github.com/JoseLion/atomic-flyway/actions/workflows/ci.yml)
[![CodeQL](https://github.com/JoseLion/atomic-flyway/actions/workflows/codeql.yml/badge.svg)](https://github.com/JoseLion/atomic-flyway/actions/workflows/codeql.yml)
[![Release](https://github.com/JoseLion/atomic-flyway/actions/workflows/release.yml/badge.svg)](https://github.com/JoseLion/atomic-flyway/actions/workflows/release.yml)
[![Pages](https://github.com/JoseLion/atomic-flyway/actions/workflows/pages.yml/badge.svg)](https://github.com/JoseLion/atomic-flyway/actions/workflows/pages.yml)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.joselion/atomic-flyway?logo=sonatype)](https://central.sonatype.com/artifact/io.github.joselion/atomic-flyway)
Expand Down

0 comments on commit 5501f8b

Please sign in to comment.