CodeQL #84
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
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http:https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: "CodeQL" | ||
# NB: This GitHub Action for https://codeql.github.com seems to be | ||
# a bit "special"; it does not appear to be (easily) possible to just | ||
# integrate and run this as part of the main build.yaml action; see | ||
# https://github.com/google/android-fhir/issues/2310. | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["master"] | ||
schedule: | ||
- cron: "32 13 * * 2" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || || github.run_id }} | ||
Check failure on line 32 in .github/workflows/codeql.yaml
|
||
cancel-in-progress: true | ||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-22.04-8core | ||
timeout-minutes: 60 | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["java"] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Switch to Java 17 from Eclipse Temurin distro | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# TODO: use Autobuild instead of ./gradlew after https://github.com/github/codeql-action/issues/1417 is fixed | ||
# - name: Autobuild | ||
# uses: github/codeql-action/autobuild@v2 | ||
- name: Build with Gradle | ||
run: ./gradlew --scan --full-stacktrace -Dorg.gradle.dependency.verification=off compileDebugAndroidTestSources | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" |