Files
hawkbit/.github/workflows/style_check.yaml
Stanislav Trailov 273abebf9b Migrate trivy scan to trivy-action (#2992)
* Migrate trivy scan to trivy-action

* Revert to hard versions approach, but not only with major ref

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
2026-04-03 10:44:46 +03:00

37 lines
814 B
YAML

name: Style Check
on:
pull_request:
paths-ignore:
- '.3rd-party/**'
- 'docs/**'
- '**.md'
workflow_dispatch:
permissions:
contents: read
jobs:
style_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
- name: Set up JDK
uses: actions/setup-java@v5.2.0
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Check code style
run: |
# compare style to target branch
git remote add target ${{ github.event.pull_request.base.repo.clone_url }}
git fetch target
mvn spotless:check -DratchetFrom=${{ github.event.pull_request.base.sha }}