Skip to content

Fix release workflow #1837

Fix release workflow

Fix release workflow #1837

Workflow file for this run

# This file is part of Dependency-Track.
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) OWASP Foundation. All Rights Reserved.
name: Lint
on:
push:
branches:
- 'main' # Main branch
- 'feature-**' # Feature branch
- '[0-9]+.[0-9]+.x' # Release branches
paths-ignore:
- '**/*.md'
- 'docs/**'
pull_request:
branches:
- 'main' # Main branch
- 'feature-**' # Feature branch
- '[0-9]+.[0-9]+.x' # Release branches
paths-ignore:
- '**/*.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: { }
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag=v6.0.2
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # tag=v5.2.0
with:
distribution: 'temurin'
java-version: '25'
cache: 'maven'
- name: Lint
run: make lint-java