Skip to content

Commit

Permalink
action.yml: trial and error
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 8, 2024
1 parent 67b066d commit 16797d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,11 @@ runs:
- if: ${{ steps.reviewdog-enabled-full.outputs.result == 'true' }}
name: Run reviewdog full
id: run-reviewdog-full
shell: bash
run: unset GITHUB_BASE_REF && ${{ github.action_path }}/assets/reviewdog.sh
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const { execSync } = require('child_process')
execSync('${{ github.action_path }}/assets/reviewdog.sh', {stdio: 'inherit', env: {...process.env, GITHUB_BASE_REF: ''}})
- id: comments-after
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down
2 changes: 1 addition & 1 deletion assets/reviewdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export ASSIGNEES=$(echo "$ASSIGNEES" | sed 's|\([^ ]\)|@\1|' | tr -s '\n' ' ')
RUNNERS="safesvg tfsec semgrep sveltegrep npm-audit pip-audit" # disabled: brakeman

echo "pwd: $(pwd)"
echo "env: "
echo "env: $(printenv)"
printenv
exit 1

Expand Down

0 comments on commit 16797d2

Please sign in to comment.