Skip to content

Update template with YouTube and more #605

Update template with YouTube and more

Update template with YouTube and more #605

name: CodeQL
on:
push:
branches: ['main']
pull_request: # The branches below must be a subset of the branches above
branches: ['main']
schedule:
- cron: '43 13 * * 2'
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
uses: 'actions/checkout@v4'
- name: Set up JDK
uses: 'actions/setup-java@v4'
with:
java-version: '17'
distribution: 'temurin'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: 'github/codeql-action/init@v3'
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: 'github/codeql-action/autobuild@v3'
- name: Perform CodeQL Analysis
uses: 'github/codeql-action/analyze@v3'