@@ -15,19 +15,19 @@ jobs:
1515 report_contents : ${{ steps.save-output.outputs.report_contents }}
1616 steps :
1717 - name : Setup python
18- uses : actions/setup-python@v5
18+ uses : actions/setup-python@v6
1919 with :
2020 python-version : ' 3.11'
2121 - name : Checkout code
22- uses : actions/checkout@v4
22+ uses : actions/checkout@v6
2323 with :
2424 ref : main
2525 - name : Download latest release
26- uses : robinraju/release-downloader@v1.10
27- with :
28- latest : true
29- fileName : ' aws-lambda-rie* '
30- out-file-path : " bin "
26+ run : |
27+ mkdir -p bin
28+ gh release download --pattern 'aws-lambda-rie*' --dir bin
29+ env :
30+ GH_TOKEN : ${{ github.token }}
3131 - name : Run check for vulnerabilities
3232 id : check-binaries
3333 run : |
@@ -61,25 +61,29 @@ jobs:
6161 name : Save outputs for the check with the latest build
6262 id : save-new-version
6363 run : |
64- if [ "${{ steps.check-new-version.outcome } }" == "failure" ]; then
64+ if [ "${CHECK_OUTCOME }" == "failure" ]; then
6565 fixed="No"
6666 else
6767 fixed="Yes"
6868 fi
6969 echo "fixed=$fixed" >> "$GITHUB_OUTPUT"
70+ env :
71+ CHECK_OUTCOME : ${{ steps.check-new-version.outcome }}
7072 - if : always() && steps.save-output.outputs.report_contents
7173 name : Create GitHub Issue indicating vulnerabilities
7274 id : create-issue
73- uses : dacbd/create-issue-action@main
74- with :
75- token : ${{ github.token }}
76- title : |
77- CVEs found in latest RIE release
78- body : |
79- ### CVEs found in latest RIE release
80- ```
81- ${{ steps.save-output.outputs.report_contents }}
82- ```
83-
84- #### Are these resolved by building with the latest patch version of Go (${{ steps.check-new-version.outputs.latest_version }})?:
85- > **${{ steps.save-new-version.outputs.fixed }}**
75+ run : |
76+ gh issue create \
77+ --title "CVEs found in latest RIE release" \
78+ --body "### CVEs found in latest RIE release
79+ \`\`\`
80+ ${REPORT_CONTENTS}
81+ \`\`\`
82+
83+ #### Are these resolved by building with the latest patch version of Go (${LATEST_VERSION})?:
84+ > **${FIXED}**"
85+ env :
86+ GH_TOKEN : ${{ github.token }}
87+ REPORT_CONTENTS : ${{ steps.save-output.outputs.report_contents }}
88+ LATEST_VERSION : ${{ steps.check-new-version.outputs.latest_version }}
89+ FIXED : ${{ steps.save-new-version.outputs.fixed }}
0 commit comments