mirror of
https://github.com/Swatinem/rust-cache
synced 2025-12-27 23:36:38 +00:00
ci: address lint findings, add zizmor workflow (#262)
This commit is contained in:
parent
f13886b937
commit
7bd5339b5b
10 changed files with 78 additions and 18 deletions
16
.github/workflows/dependabot.yml
vendored
16
.github/workflows/dependabot.yml
vendored
|
|
@ -3,23 +3,25 @@
|
|||
name: Dependabot Automation
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # for pushing commits
|
||||
pull-requests: write # for merging PRs
|
||||
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'Swatinem/rust-cache'
|
||||
steps:
|
||||
- name: Fetch metadata
|
||||
id: metadata
|
||||
uses: dependabot/fetch-metadata@v2
|
||||
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0
|
||||
with:
|
||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
fetch-depth: 2
|
||||
persist-credentials: false
|
||||
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
||||
- name: Check if package-lock.json has been changed
|
||||
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
||||
|
|
@ -35,7 +37,7 @@ jobs:
|
|||
fi
|
||||
- name: Setup node if necessary
|
||||
if: steps.npm.outputs.changed != ''
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: npm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue