Update python image, setuptools upgrade to 70 #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: Build and Push Redis Image | |
on: | |
push: | |
branches: | |
- redis | |
- redis-tests | |
permissions: | |
contents: read | |
security-events: write | |
packages: write | |
jobs: | |
security-checks: | |
name: Security Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run GitGuardian scan | |
uses: GitGuardian/ggshield-action@master | |
env: | |
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }} | |
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }} | |
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} | |
- name: Run Hadolint | |
uses: hadolint/hadolint-action@v3.1.0 | |
with: | |
dockerfile: ./Dockerfile | |
format: sarif | |
output-file: hadolint-results.sarif | |
no-fail: true | |
- name: Upload Hadolint results | |
uses: github/codeql-action/upload-sarif@v3 | |
if: success() || failure() | |
with: | |
sarif_file: hadolint-results.sarif | |
category: hadolint | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: python | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
build-and-scan: | |
runs-on: ubuntu-latest | |
needs: security-checks | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: true | |
tags: pbdco/aws-spotter:redis | |
cache-from: type=registry,ref=pbdco/aws-spotter:redis | |
cache-to: type=inline | |
provenance: mode=max | |
- name: Run Docker Scout | |
uses: docker/scout-action@v1 | |
with: | |
command: quickview,cves | |
image: pbdco/aws-spotter:redis | |
only-severities: critical,high | |
exit-code: true |