Improve documentation examples and update feature showcase 📷 #841
Workflow file for this run
This file contains 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: Differential ShellCheck | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
lint-latest: | |
name: Test latest changes | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
# Let's have this log of GitHub context for further development and debugging | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- name: Repository checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
with: | |
fetch-depth: 0 | |
# Replace docker://ghcr.io/redhat-plumbers-in-action/differential-shellcheck:vX.Y.Z with Dockerfile | |
- name: Edit an action.yml file to test current changes | |
run: | | |
sed -i "s/docker:\/\/ghcr\.io\/redhat-plumbers-in-action\/differential-shellcheck.*/Dockerfile/g" action.yml | |
- name: Differential ShellCheck - Full scan | |
continue-on-error: true | |
id: ShellCheck_Bad_Examples | |
uses: ./ | |
with: | |
diff-scan: false | |
scan-directory: docs/** | |
- name: Differential ShellCheck - Diff scan | |
continue-on-error: true | |
uses: ./ | |
with: | |
scan-directory: docs/** | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- if: ${{ always() }} | |
name: Upload artifact with defects in SARIF format - Bad code examples | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce | |
with: | |
name: Differential ShellCheck SARIF of Bad code examples | |
path: ${{ steps.ShellCheck_Bad_Examples.outputs.sarif }} | |
retention-days: 7 | |
- name: Differential ShellCheck - test current changes | |
continue-on-error: true | |
id: ShellCheck_Latest | |
uses: ./ | |
with: | |
exclude-path: | | |
test/** | |
src/**.{zsh,osh} | |
docs/** | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- if: ${{ always() }} | |
name: Upload artifact with defects in SARIF format - Current changes | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce | |
with: | |
name: Differential ShellCheck SARIF of Current changes | |
path: ${{ steps.ShellCheck_Latest.outputs.sarif }} | |
retention-days: 7 |