chores #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: chores | |
on: | |
schedule: | |
- cron: 0 0 * * 1 | |
workflow_dispatch: | |
env: | |
GRADLE_OPTS: -Dorg.gradle.jvmargs="-XX:MaxMetaspaceSize=2g" | |
JDK_VERSION: 19 | |
concurrency: | |
group: chores | |
cancel-in-progress: true | |
jobs: | |
trunk-upgrade: | |
name: trunk-upgrade | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Trunk Upgrade | |
uses: trunk-io/trunk-action/upgrade@main | |
with: | |
prefix: "chore: " | |
cql-scan: | |
name: repo-scan | |
runs-on: ubuntu-latest | |
timeout-minutes: 360 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: /language:java | |
fossa-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ env.JDK_VERSION }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ env.JDK_VERSION }} | |
distribution: temurin | |
- name: Build with JDK ${{ env.JDK_VERSION }} | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
- name: FOSSA Scan | |
uses: fossas/fossa-action@main | |
with: | |
api-key: ${{ secrets.FOSSA_API_KEY }} | |
- name: FOSSA Scan | |
uses: fossas/fossa-action@main | |
with: | |
api-key: ${{ secrets.FOSSA_API_KEY }} | |
run-tests: true |