Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
46 changes: 25 additions & 21 deletions .github/workflows/check-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
report_contents: ${{ steps.save-output.outputs.report_contents }}
steps:
- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: main
- name: Download latest release
uses: robinraju/release-downloader@v1.10
with:
latest: true
fileName: 'aws-lambda-rie*'
out-file-path: "bin"
run: |
mkdir -p bin
gh release download --pattern 'aws-lambda-rie*' --dir bin
env:
GH_TOKEN: ${{ github.token }}
- name: Run check for vulnerabilities
id: check-binaries
run: |
Expand Down Expand Up @@ -61,25 +61,29 @@ jobs:
name: Save outputs for the check with the latest build
id: save-new-version
run: |
if [ "${{ steps.check-new-version.outcome }}" == "failure" ]; then
if [ "${CHECK_OUTCOME}" == "failure" ]; then
fixed="No"
else
fixed="Yes"
fi
echo "fixed=$fixed" >> "$GITHUB_OUTPUT"
env:
CHECK_OUTCOME: ${{ steps.check-new-version.outcome }}
- if: always() && steps.save-output.outputs.report_contents
name: Create GitHub Issue indicating vulnerabilities
id: create-issue
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: |
CVEs found in latest RIE release
body: |
### CVEs found in latest RIE release
```
${{ steps.save-output.outputs.report_contents }}
```

#### Are these resolved by building with the latest patch version of Go (${{ steps.check-new-version.outputs.latest_version }})?:
> **${{ steps.save-new-version.outputs.fixed }}**
run: |
gh issue create \
--title "CVEs found in latest RIE release" \
--body "### CVEs found in latest RIE release
\`\`\`
${REPORT_CONTENTS}
\`\`\`

#### Are these resolved by building with the latest patch version of Go (${LATEST_VERSION})?:
> **${FIXED}**"
env:
GH_TOKEN: ${{ github.token }}
REPORT_CONTENTS: ${{ steps.save-output.outputs.report_contents }}
LATEST_VERSION: ${{ steps.check-new-version.outputs.latest_version }}
FIXED: ${{ steps.save-new-version.outputs.fixed }}
22 changes: 7 additions & 15 deletions .github/workflows/integ-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,33 @@ permissions:
jobs:
go-tests:
runs-on: ubuntu-latest
environment:
name: integ-tests
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: run go tests
run: make tests-with-docker
integ-tests-x86:
runs-on: ubuntu-latest
environment:
name: integ-tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: run integration tests
run: make integ-tests-with-docker-x86-64
integ-tests-arm64:
runs-on: ubuntu-latest
environment:
name: integ-tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: run integration tests
run: make integ-tests-with-docker-arm64
integ-tests-old:
runs-on: ubuntu-latest
environment:
name: integ-tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: run integration tests
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
environment: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: main
- name: Set up python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Build
Expand All @@ -33,12 +33,14 @@ jobs:
make tests-with-docker
make integ-tests
- name: Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.event.inputs.releaseVersion }}
tag_name: v${{ github.event.inputs.releaseVersion }}
body: ${{ github.event.inputs.releaseBody }}
files: |
bin/aws-lambda-rie
bin/aws-lambda-rie-arm64
run: |
gh release create "v${RELEASE_VERSION}" \
--title "Release ${RELEASE_VERSION}" \
--notes "${RELEASE_BODY}" \
bin/aws-lambda-rie \
bin/aws-lambda-rie-arm64 \
bin/aws-lambda-rie-x86_64
env:
GH_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }}
RELEASE_BODY: ${{ github.event.inputs.releaseBody }}