PMD - pull_request #61
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs PMD for a Pull Request | |
# | |
# Description: | |
# Runs PMD (pmd.github.io) for a pull request and daily. | |
# This does not error on failure yet, our rules are too strong and would fail on every run | |
# | |
# Triggers: | |
# - pull_request | |
# - workflow_dispatch | |
# - cron: every day at 12:00PM | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * *' # Run daily at 12:00 UTC | |
name: PMD | |
run-name: PMD - ${{ github.event_name }} | |
permissions: | |
contents: read | |
jobs: | |
pmd_analyse: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Java | |
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | |
with: | |
java-version: 21 | |
distribution: corretto | |
cache: maven | |
- uses: pmd/pmd-github-action@d9c1f3c5940cbf5923f1354e83fa858b4496ebaa # v2.0.0 | |
with: | |
rulesets: '.github/pmd-ruleset.xml' | |
token: ${{ secrets.GITHUB_TOKEN }} |