chore(deps): bump jackson to 2.15.2 and guava to 32.1.2-jre #7
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
| name: Dependency Audit | |
| on: | |
| workflow_dispatch: {} | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| audit: | |
| name: Run dependency & test audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install system deps (Leiningen) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y leiningen || true | |
| - name: Environment info | |
| run: | | |
| echo "## Environment" > audit-summary.txt | |
| java -version 2>&1 | sed -n '1,3p' >> audit-summary.txt || true | |
| lein -v 2>&1 | sed -n '1,3p' >> audit-summary.txt || true | |
| node -v >> audit-summary.txt || true | |
| npm -v >> audit-summary.txt || true | |
| - name: Capture dependency tree | |
| run: | | |
| echo "## Lein deps :tree" > deps-tree.txt | |
| lein deps :tree 2>&1 | sed -n '1,4000p' >> deps-tree.txt || true | |
| - name: Run tests | |
| run: | | |
| echo "## Lein test" > test-results.txt | |
| lein test 2>&1 | sed -n '1,4000p' >> test-results.txt || true | |
| - name: Run lint | |
| run: | | |
| echo "## Lein lint" > lint-results.txt | |
| lein lint 2>&1 | sed -n '1,4000p' >> lint-results.txt || true | |
| - name: NPM outdated | |
| run: | | |
| npm --version || true | |
| echo "## npm outdated" > npm-outdated.json | |
| npm outdated --json > npm-outdated.json || true | |
| echo "" >> npm-outdated.json || true | |
| - name: NPM-check-updates (ncu) | |
| run: | | |
| npm i -g npm-check-updates --silent || true | |
| npx npm-check-updates --packageFile package.json --jsonUpgraded > ncu.json || true | |
| - name: Create summary | |
| run: | | |
| echo "Dependency audit finished. Artifacts: deps-tree.txt, test-results.txt, lint-results.txt, npm-outdated.json, ncu.json" > summary.txt | |
| cat summary.txt >> audit-summary.txt | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dependency-audit-artifacts | |
| path: | | |
| audit-summary.txt | |
| deps-tree.txt | |
| test-results.txt | |
| lint-results.txt | |
| npm-outdated.json | |
| ncu.json | |
| - name: Post short summary to PR | |
| if: github.event_name == 'pull_request' | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| const pr = context.payload.pull_request | |
| if (!pr) return | |
| const body = `Dependency audit ran. Artifacts attached to the workflow run. See the 'Artifacts' pane for detailed outputs (deps, tests, lint, npm outdated).`; | |
| await github.issues.createComment({owner: context.repo.owner, repo: context.repo.repo, issue_number: pr.number, body}) | |
| - name: Write job summary | |
| run: | | |
| echo "## Dependency Audit Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "Artifacts: deps-tree.txt, test-results.txt, lint-results.txt, npm-outdated.json, ncu.json" >> $GITHUB_STEP_SUMMARY | |
| timeout-minutes: 30 |