Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesvarns committed Feb 21, 2024
2 parents 981e289 + 17b673b commit f517462
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ jobs:
- name: Run brakeman
run: |
bundle exec brakeman -o .github/brakeman.log
cat .github/brakeman.log
if grep -q "No warnings found" .github/brakeman.log; then
echo '{"status": "success"}' > brakeman_status.json
echo "BRACKMAN_STATUS=Passed" >> $GITHUB_ENV
else
echo '{"status": "failure"}' > brakeman_status.json
fi
echo "BRACKMAN_STATUS=Failed" >> $GITHUB_ENV
fi
- name: Write log statuws to files
uses: frdrwrt/[email protected]
with:
filepath: brakeman_status.json
content: echo "${{ env.BRACKMAN_STATUS }}"

0 comments on commit f517462

Please sign in to comment.