Remove legacy stuff (#2762) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Image Extracting and Security Scanning | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
image-extraction-and-security-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Install kustomize | |
- name: Install kustomize | |
run: | | |
sudo apt update | |
sudo apt install snapd | |
sudo snap install kustomize | |
# Install trivy | |
- name: Install trivy | |
run: | | |
sudo apt update | |
sudo snap install trivy | |
# Install Python | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Install prettytable package | |
- name: Install prettytable | |
run: | | |
pip install prettytable | |
# Run the shell script (trivy_scan.py) | |
- name: Run image extracting and security scanning script | |
run: | | |
cd hack | |
python3 trivy_scan.py |