🔄 Synced local '.github/workflows/' with remote 'config/workflows/'

This commit is contained in:
nextcloud-android-bot 2022-06-13 10:03:55 +00:00
parent c56ccc8363
commit aa40ba3d5c
1 changed files with 41 additions and 0 deletions

41
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,41 @@
name: "CodeQL"
on:
push:
branches: [ "master", "stable-*" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '24 18 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "temurin"
java-version: 11
- name: Assemble
run: |
mkdir -p $HOME/.gradle
echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
./gradlew assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2