Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iamSrikantheppa authored May 10, 2024
1 parent 8936108 commit cd8d9da
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ jobs:
- name: Run Trivy scanner
uses: aquasecurity/trivy-action@master
with:
scan-type: repo
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
scan-type: 'repo'
# 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: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@master
Expand Down Expand Up @@ -177,8 +177,8 @@ jobs:
- name: Scan image in a private registry
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TG}}"
scan-type: image
image-ref: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{env.TG}}"
scan-type: 'image'
format: 'github'
output: 'dependency-results.json'
github-pat: ${{ secrets.GITHUB_TOKEN }} # or ${{ secrets.github_pat_name }} if you're using a PAT
Expand Down

0 comments on commit cd8d9da

Please sign in to comment.