Skip to content

Fix: Correct invalid docker/login-action SHA #2

Fix: Correct invalid docker/login-action SHA

Fix: Correct invalid docker/login-action SHA #2

Workflow file for this run

name: Docker
on:
push:
branches:
- main
- develop
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-scan-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Log in to the Container registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199093565ac3b62264dc64a97
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b6f31a22640103738a088e5d3c8b4104
- name: Build and push
uses: docker/build-push-action@2cddeafc873d6113b789a7164923793f63101131
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Scan for vulnerabilities
uses: aquasecurity/trivy-action@678a23d8ab761c56f6f59508935c1054363d11b3
with:
image-ref: 'ghcr.io/${{ github.repository }}:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'