-
Notifications
You must be signed in to change notification settings - Fork 125
52 lines (39 loc) · 1.24 KB
/
ci.yml
File metadata and controls
52 lines (39 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI Docker Scout
on:
push:
branches:
- main
- fix/attestation-docs
pull_request:
jobs:
scout:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
# Login a Docker Hub
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
# Instalar Docker Scout
- name: Install Docker Scout
run: |
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --
# Verificar instalación
- name: Verify installation
run: docker scout version
# Ejecutar análisis
- name: Run Docker Scout Quickview
run: docker scout quickview alpine
- name: Run Docker Scout CVEs
run: docker scout cves alpine
# =========================
# PRUEBAS UNITARIAS
# =========================
- name: Install Python
run: sudo apt-get update && sudo apt-get install -y python3 python3-pip
- name: Install pytest
run: pip3 install pytest
- name: Run unit tests
run: pytest