Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix: Fail on findings/errors (#9)
Browse files Browse the repository at this point in the history
This patch lets the action fail on findings or other errors, such as credential errors.

Related to #4
  • Loading branch information
densogiaichned authored Dec 12, 2022
1 parent f0a00c2 commit ef2fae5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

/sonatype/evaluate -s $1 -a $2:$3 -i $4 -t $5 $GITHUB_WORKSPACE/$6
cleanup() {
# Clean up workspace
rm -rf com.sonatype.insight.scan.outDir_IS_UNDEFINED
rm -rf com.sonatype.insight.scan.outDir_IS_UNDEFINED
}
trap cleanup EXIT

/sonatype/evaluate -s $1 -a $2:$3 -i $4 -t $5 $GITHUB_WORKSPACE/$6

0 comments on commit ef2fae5

Please sign in to comment.