Skip to content

build(deps): bump cryptography from 46.0.5 to 46.0.6 in the pip group… #2854

build(deps): bump cryptography from 46.0.5 to 46.0.6 in the pip group…

build(deps): bump cryptography from 46.0.5 to 46.0.6 in the pip group… #2854

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@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up JDK 17
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Code style analysis
run: |
wget https://github.com/google/google-java-format/releases/download/v1.20.0/google-java-format-1.20.0-all-deps.jar
java -jar google-java-format-1.20.0-all-deps.jar --aosp --skip-javadoc-formatting --skip-reflowing-long-strings --skip-sorting-imports --replace -i $(git ls-files|grep \.java$)
- name: Print diffs
run: git --no-pager diff --exit-code