Skip to content

Apply security best practices into workflows and Docker file (#270) #23

Apply security best practices into workflows and Docker file (#270)

Apply security best practices into workflows and Docker file (#270) #23

name: Check Java Format
on: [ push, pull_request ]
permissions:
contents: read
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
with:
egress-policy: audit
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: axel-op/googlejavaformat-action@dbff853fb823671ec5781365233bf86543b13215 # v3
with:
args: "--aosp --skip-javadoc-formatting --skip-reflowing-long-strings --skip-sorting-imports --replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code