mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
ci(lint): add shell linter - Differential ShellCheck
It performs differential ShellCheck scans and report results directly in pull request. documentation: https://github.com/redhat-plumbers-in-action/differential-shellcheck
This commit is contained in:
parent
19193b4898
commit
3f3c718e79
30
.github/workflows/differential-shellcheck.yml
vendored
Normal file
30
.github/workflows/differential-shellcheck.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
# https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme
|
||||
|
||||
name: Differential ShellCheck
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
security-events: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: Repository checkout
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Differential ShellCheck
|
||||
uses: redhat-plumbers-in-action/differential-shellcheck@60360c0fb283149ed03ad16b66257a967c3e5231
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user