Skip to content

build(deps): bump github/codeql-action from 2.22.8 to 3.22.12 #945

build(deps): bump github/codeql-action from 2.22.8 to 3.22.12

build(deps): bump github/codeql-action from 2.22.8 to 3.22.12 #945

---
name: Differential ShellCheck
on:
push:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
lint:
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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 - test current changes
id: ShellCheck
uses: ./
with:
exclude-path: |
test/**
src/**.{zsh,osh}
token: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ always() }}
name: Upload artifact with defects in SARIF format
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: Differential ShellCheck SARIF
path: ${{ steps.ShellCheck.outputs.sarif }}
retention-days: 7