Skip to content

Commit

Permalink
Create skip-github.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BatistaGabriel authored Apr 27, 2024
1 parent 6af3ef8 commit 4175591
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/skip-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: skip-github
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]


jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run Trivy scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
hide-progress: true
output: trivy.txt

- name: Publish Trivy Output to Summary
run: |
if [[ -s trivy.txt ]]; then
{
echo "### Security Output"
echo "<details><summary>Click to expand</summary>"
echo ""
echo '```terraform'
cat trivy.txt
echo '```'
echo "</details>"
} >> $GITHUB_STEP_SUMMARY
fi
- name: Trivy Scan and Report to PR
uses: domstolene/trivy-pr-report@v1
with:
github_token: ${{ github.token }}

0 comments on commit 4175591

Please sign in to comment.