Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesvarns authored Feb 21, 2024
1 parent f517462 commit 10b2761
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,22 @@ jobs:
run: |
bundle exec brakeman -o .github/brakeman.log
if grep -q "No warnings found" .github/brakeman.log; then
echo "BRACKMAN_STATUS=Passed" >> $GITHUB_ENV
echo "BRAKEMAN_STATUS=Passed" >> $GITHUB_ENV
else
echo "BRACKMAN_STATUS=Failed" >> $GITHUB_ENV
echo "BRAKEMAN_STATUS=Failed" >> $GITHUB_ENV
fi
- name: Write log statuws to files
uses: frdrwrt/write-to-file@v1.3
- name: Write log status to files
uses: "DamianReeves/write-file-action@master"
with:
filepath: brakeman_status.json
content: echo "${{ env.BRACKMAN_STATUS }}"
path: .github/brakeman_status.json
write-mode: overwrite
contents: echo "${{ env.BRAKEMAN_STATUS }}"

- name: Commit & Push
uses: Andro999b/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
force: true
message: 'Overwritten by Github Actions step `Run brakeman` - ${date}'

0 comments on commit 10b2761

Please sign in to comment.