Skip to content

Commit

Permalink
split into extra step after checking binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
valerena committed May 21, 2024
1 parent ddba990 commit 09316ac
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/check-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,21 @@ jobs:
latest_version=$(strings bin/aws-lambda-rie* | grep '^go1\.' | uniq)
echo "latest_version=$latest_version"
make check-binaries
- if: always()
name: Save output for new version
id: save-new-version
run: |
exit_code=$?
if [ "$exit_code" != "0" ]; then
if [ "${{ steps.check-new-version.outcome }}" != "success" ]; then
fixed="No"
else
fixed="Yes"
fi
echo "fixed=$fixed" >> "$GITHUB_OUTPUT"
echo "Fixed=$fixed"
echo "${{ steps.check-new-version.outputs.latest_version }}"
echo "${{ needs.check-for-vulnerabilities.outputs.report_contents }}"
echo "OUTCOME=${{ steps.check-new-version.outcome }}"
echo "latest-version: ${{ steps.check-new-version.outputs.latest_version }}"
echo "REPORT=[${{ steps.save-output.outputs.report_contents }}"
- name: Second step
id: second-step
run: |
Expand All @@ -80,7 +85,7 @@ jobs:
# CVEs found in latest RIE release
# body: |
# ## CVEs found in latest RIE release:
# > **${{ needs.check-for-vulnerabilities.outputs.report_contents }}**
# > **${{ steps.save-output.outputs.report_contents }}**

# #### Is this fixed by just updating to the latest Go version (${{ steps.check-new-version.outputs.latest_version }})?):
# **${{ steps.check-new-version.outputs.fixed }}**

0 comments on commit 09316ac

Please sign in to comment.