Skip to content

build(ci): configure release-rc workflow to commit as googlemaps-bot #552

build(ci): configure release-rc workflow to commit as googlemaps-bot

build(ci): configure release-rc workflow to commit as googlemaps-bot #552

Workflow file for this run

# Copyright 2026 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://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: Lint and Upload SARIF
on:
pull_request:
branches:
- main
permissions:
contents: read
security-events: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Create dummy secrets.properties
run: echo "MAPS_API_KEY=dummy" > secrets.properties
- name: Run Android Lint
run: ./gradlew :library:lintDebug :demo:lintStandardDebug
- name: Upload SARIF for library
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
sarif_file: library/build/reports/lint-results.sarif
category: library
- name: Upload SARIF for demo
uses: github/codeql-action/upload-sarif@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
sarif_file: demo/build/reports/lint-results.sarif
category: demo