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 e63a2bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,13 @@ 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')
const cmd = execSync('${{ github.action_path }}/assets/reviewdog.sh', {env: {...process.env, GITHUB_BASE_REF: ''}})
console.log(cmd.stdout.toString())
console.log(cmd.stderr.toString())
- id: comments-after
if: ${{ steps.reviewdog-enabled-pr.outputs.result == 'true' }}
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down
4 changes: 2 additions & 2 deletions assets/reviewdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ 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
#exit 1

if [ -n "${GITHUB_BASE_REF+set}" ]; then
for runner in $RUNNERS; do
Expand Down

0 comments on commit e63a2bb

Please sign in to comment.