Skip to content

Commit

Permalink
gggggggggggg
Browse files Browse the repository at this point in the history
ggggggggggg
  • Loading branch information
RLI-Rdeaton committed Dec 17, 2024
1 parent 4c871b9 commit 4340a09
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/dockertest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down Expand Up @@ -455,9 +455,6 @@ jobs:
else
echo "THERE ARE FINDINGS, GENERATING HDF AND CSV"
saf convert trivy2hdf -i ${{ env.OUTPUT_NAME }}.json -o ${{ env.OUTPUT_NAME }}
ls -latr
echo "OKAY WHAT"
ls ${{ github.workspace }}/${{ env.OUTPUT_NAME }} -latr
cp '${{ github.workspace }}/${{ env.OUTPUT_NAME }}/aquasecurity - aquasecurity.json' ${{ github.workspace }}/${{ env.OUTPUT_NAME }}.hdf.json
saf convert hdf2csv -i ${{ env.OUTPUT_NAME }}.hdf.json -o ${{ env.OUTPUT_NAME }}.csv
fi
Expand Down Expand Up @@ -499,7 +496,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down Expand Up @@ -603,7 +600,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down Expand Up @@ -708,7 +705,7 @@ jobs:
git config --global user.name ${{ secrets.GH_NAME }}
git add "${{ env.OUTPUT_NAME }}.csv"
git pull
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt | true
git commit -m "Update ${{ env.TOOL }} results in ${{ github.event.repository.name }}" --dry-run > check.txt 2>&1 | true
if grep 'nothing added to commit' check.txt; then
rm check.txt
exit 0
Expand Down

0 comments on commit 4340a09

Please sign in to comment.