From 50ce1f1013ea061b49c75b39ac6279be20ba51a6 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Sat, 2 Mar 2024 14:05:15 +0100 Subject: [PATCH] Update example workflow --- GitHub-Actions.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/GitHub-Actions.md b/GitHub-Actions.md index e996233..7e3e19b 100644 --- a/GitHub-Actions.md +++ b/GitHub-Actions.md @@ -9,6 +9,8 @@ GitHub action for running ShellCheck differentially. New findings are reported d ```yaml name: Differential ShellCheck on: + push: + branches: [ main ] pull_request: branches: [main] @@ -16,18 +18,25 @@ permissions: contents: read jobs: - test: + lint: runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + + # only required for workflows in private repositories + actions: read + contents: read + steps: - name: Repository checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Differential ShellCheck - uses: redhat-plumbers-in-action/differential-shellcheck@v3 + uses: redhat-plumbers-in-action/differential-shellcheck@v5 with: - severity: warning token: ${{ secrets.GITHUB_TOKEN }} ```