Skip to content

Commit

Permalink
Test binary check
Browse files Browse the repository at this point in the history
  • Loading branch information
valerena committed May 13, 2024
1 parent ba56ed4 commit 4730940
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/check-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Check binaries

# on:
# pull_request:
# branches:
# - develop

on:
workflow_dispatch:
inputs:
text:
description: 'Dummy text'
default: 'No text'
# schedule:
# - cron: "* * * * *"s

jobs:
check-binary:
runs-on: ubuntu-latest
outputs:
vulnerability: ${{steps.laststep.outputs}}
steps:
- uses: robinraju/[email protected]
with:
latest: true
fileName: 'aws-lambda-rie*'
out-file-path: "bin"
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: check-binaries
run: make check-binaries
- id: laststep
run: cat $(ls -tr *.csv 2>/dev/null | tail -n1) >> "$GITHUB_OUTPUT"
# - id: laststep
# run: cat $(ls -tr *.csv 2>/dev/null | tail -n1) >> "$GITHUB_OUTPUT"
# create-issue:
# runs-on: ubuntu-latest
# needs: check-binary
# if: always() && needs.check-binary.outputs != ""
# steps:
# - name: Create Issue
# uses: dacbd/create-issue-action@main
# with:
# token: ${{ github.token }}
# title: |
# CVEs found in latest RIE binaries
# body: |
# ## CVEs found in latest RIE binaries:
# > **${{ needs.check-binary.outputs}}**

5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@ integ-tests-with-docker-old:
make ARCH=old compile-with-docker
make prep-python
make TEST_ARCH="" TEST_PORT=9052 exec-python-e2e-test


check-binaries: prep-python
.venv/bin/pip install cve-bin-tool
.venv/bin/python -m cve_bin_tool.cli bin/ -r go -d REDHAT,OSV,GAD,CURL --no-0-cve-report

0 comments on commit 4730940

Please sign in to comment.