62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: Differential ShellCheck
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
base:
|
|
description: Base revision for manual differential scan
|
|
required: true
|
|
head:
|
|
description: Head revision for manual differential scan
|
|
required: true
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'rc/**'
|
|
paths:
|
|
- 'install.sh'
|
|
- 'podkop/files/usr/bin/**'
|
|
- 'podkop/files/usr/lib/**'
|
|
- '.github/workflows/shellcheck.yml'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'rc/**'
|
|
paths:
|
|
- 'install.sh'
|
|
- 'podkop/files/usr/bin/**'
|
|
- 'podkop/files/usr/lib/**'
|
|
- '.github/workflows/shellcheck.yml'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: Differential ShellCheck
|
|
if: ${{ github.event_name != 'push' || github.event.forced != true }}
|
|
runs-on: ubuntu-24.04
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Differential ShellCheck
|
|
uses: redhat-plumbers-in-action/differential-shellcheck@v5.5.5
|
|
with:
|
|
triggering-event: ${{ github.event_name == 'workflow_dispatch' && 'manual' || github.event_name }}
|
|
base: ${{ github.event.inputs.base }}
|
|
head: ${{ github.event.inputs.head }}
|
|
severity: error
|
|
include-path: |
|
|
podkop/files/usr/bin/podkop
|
|
podkop/files/usr/lib/**.sh
|
|
install.sh
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|