Skip to content

CodeQL workflow for Java #8

CodeQL workflow for Java

CodeQL workflow for Java #8

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '34 2 * * 0'
jobs:
analyze:

Check failure on line 13 in .github/workflows/codeql-analysis.yml

View workflow run for this annotation

GitHub Actions / CodeQL

Invalid workflow file

The workflow is not valid. .github/workflows/codeql-analysis.yml (Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
name: Code Analyze
runs-on: ubuntu-latest
needs: setup
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: corretto
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Init gradle wrapper
run: gradle wrapper
- name: Build with Gradle
run: ./gradlew build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2