Skip to content

Commit 86f4f49

Browse files
committed
uncomment issue creation
1 parent 8f0836a commit 86f4f49

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.github/workflows/check-binaries.yml

+17-22
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo "report_contents<<EOF" >> "$GITHUB_OUTPUT"
4949
cat "$report" >> "$GITHUB_OUTPUT"
5050
echo "EOF" >> "$GITHUB_OUTPUT"
51-
- if: always() && steps.save-output.outputs.report_contents != ''
51+
- if: always() && steps.check-binaries.outcome == 'failure'
5252
name: Build new version and check
5353
id: check-new-version
5454
run: |
@@ -58,12 +58,12 @@ jobs:
5858
latest_version=$(strings bin/aws-lambda-rie* | grep '^go1\.' | sort | uniq)
5959
echo "latest_version=$latest_version"
6060
make check-binaries
61-
- if: always()
61+
- if: always() && steps.check-binaries.outcome == 'failure'
6262
name: Save output for new version
6363
id: save-new-version
6464
run: |
6565
exit_code=$?
66-
if [ "${{ steps.check-new-version.outcome }}" != "success" ]; then
66+
if [ "${{ steps.check-new-version.outcome }}" == "failure" ]; then
6767
fixed="No"
6868
else
6969
fixed="Yes"
@@ -72,23 +72,18 @@ jobs:
7272
echo "Fixed=$fixed"
7373
echo "OUTCOME=${{ steps.check-new-version.outcome }}"
7474
echo "latest-version: ${{ steps.check-new-version.outputs.latest_version }}"
75-
echo "REPORT=[${{ steps.save-output.outputs.report_contents }}"
76-
- if: always()
77-
name: Second step
78-
id: second-step
79-
run: |
80-
echo "Echo echo echo **${{ steps.check-new-version.outputs.fixed }}**"
81-
# - if: always()
82-
# name: Create Issue
83-
# id: create-issue
84-
# uses: dacbd/create-issue-action@main
85-
# with:
86-
# token: ${{ github.token }}
87-
# title: |
88-
# CVEs found in latest RIE release
89-
# body: |
90-
# ## CVEs found in latest RIE release:
91-
# > **${{ steps.save-output.outputs.report_contents }}**
75+
echo "REPORT=[[${{ steps.save-output.outputs.report_contents }}]]"
76+
- if: always() && steps.check-binaries.outcome == 'failure'
77+
name: Create Issue
78+
id: create-issue
79+
uses: dacbd/create-issue-action@main
80+
with:
81+
token: ${{ github.token }}
82+
title: |
83+
CVEs found in latest RIE release
84+
body: |
85+
## CVEs found in latest RIE release:
86+
> **${{ steps.save-output.outputs.report_contents }}**
9287
93-
# #### Is this fixed by just updating to the latest Go version (${{ steps.check-new-version.outputs.latest_version }})?):
94-
# **${{ steps.check-new-version.outputs.fixed }}**
88+
#### Is this fixed by just updating to the latest Go version (${{ steps.check-new-version.outputs.latest_version }})?):
89+
**${{ steps.check-new-version.outputs.fixed }}**

0 commit comments

Comments
 (0)