Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tommy_9527_user02 #68

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
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: 3 additions & 3 deletions .cache/ans/single/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
nginx:
image: nginx:latest
container_name: nginx
container_name: nginx_tommy9527_user02
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
Expand All @@ -21,7 +21,7 @@ services:

wordpress:
image: wordpress:latest
container_name: wordpress
container_name: wordpress_tommy9527_user02
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
Expand All @@ -43,7 +43,7 @@ services:

db:
image: mysql:8
container_name: db
container_name: mysql_tommy9527_user02
environment:
MYSQL_ROOT_PASSWORD: examplepass
MYSQL_DATABASE: exampledb
Expand Down
34 changes: 29 additions & 5 deletions .github/workflows/image-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,42 @@ on:
jobs:
scan:
name: Scan Docker Image
runs-on: [runner-2, self-hosted]
runs-on: [runner-1, self-hosted]
#runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

# https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#inputs
- name: Run Trivy vulnerability scanner
- name: Run Mysql
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ubuntu:impish-20210711'
image-ref: 'mysql:5.7'
format: 'table'
exit-code: '1'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
severity: 'CRITICAL,HIGH'
- name: Run nginx
uses: aquasecurity/trivy-action@master
with:
image-ref: 'nginx:latest'
format: 'table'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- name: Run wordpress
uses: aquasecurity/trivy-action@master
with:
image-ref: 'wordpress:latest'
format: 'table'
exit-code: '0'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- name: Run Test
run: |
cd .cache/ans/single
docker compose up -d
shell: bash
Loading