48
48
echo "report_contents<<EOF" >> "$GITHUB_OUTPUT"
49
49
cat "$report" >> "$GITHUB_OUTPUT"
50
50
echo "EOF" >> "$GITHUB_OUTPUT"
51
- - if : always() && steps.save-output.outputs.report_contents != ' '
51
+ - if : always() && steps.check-binaries.outcome == 'failure '
52
52
name : Build new version and check
53
53
id : check-new-version
54
54
run : |
@@ -58,12 +58,12 @@ jobs:
58
58
latest_version=$(strings bin/aws-lambda-rie* | grep '^go1\.' | sort | uniq)
59
59
echo "latest_version=$latest_version"
60
60
make check-binaries
61
- - if : always()
61
+ - if : always() && steps.check-binaries.outcome == 'failure'
62
62
name : Save output for new version
63
63
id : save-new-version
64
64
run : |
65
65
exit_code=$?
66
- if [ "${{ steps.check-new-version.outcome }}" != "success " ]; then
66
+ if [ "${{ steps.check-new-version.outcome }}" == "failure " ]; then
67
67
fixed="No"
68
68
else
69
69
fixed="Yes"
@@ -72,23 +72,18 @@ jobs:
72
72
echo "Fixed=$fixed"
73
73
echo "OUTCOME=${{ steps.check-new-version.outcome }}"
74
74
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 }}**
92
87
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