mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
97eb826821
Exclude all `.in` files because they may contain unsupported syntax, and they have to be preprocessed first. For example: ```sh Error: SHELLCHECK_WARNING: ./src/rpm/systemd-update-helper.in:130:37: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it. ``` Related to: https://github.com/systemd/systemd/pull/28521
36 lines
888 B
YAML
36 lines
888 B
YAML
---
|
|
# https://github.com/redhat-plumbers-in-action/differential-shellcheck#readme
|
|
|
|
name: Differential ShellCheck
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
if: github.event.repository.name != 'systemd-security'
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Repository checkout
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Differential ShellCheck
|
|
uses: redhat-plumbers-in-action/differential-shellcheck@ac4483d8c6713bd2011037f44fe626989468af74
|
|
with:
|
|
# exclude all `.in` files because they may contain unsupported syntax, and they have to be preprocessed first
|
|
exclude-path: '**/*.in'
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|