-
Notifications
You must be signed in to change notification settings - Fork 56
44 lines (34 loc) · 1.24 KB
/
lint-images.yaml
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
name: Lint images
on: push
jobs:
lint-images:
name: Lint images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check that global.imageRegistry is applied to all images
run: bash ./image_registry_check.sh
working-directory: ./scripts
- name: Check that global.imagePullSecrets are applied to all images
run: bash ./image_pull_secrets_check.sh
working-directory: ./scripts
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Docker Scout
run: |
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh
- name: Check to make sure that images do not have critical CVEs
run: bash ./image_cve_check.sh
working-directory: ./scripts