Skip to content

chore(actions): bump docker/login-action from 4.5.2 to 4.6.0 in /.git… #619

chore(actions): bump docker/login-action from 4.5.2 to 4.6.0 in /.git…

chore(actions): bump docker/login-action from 4.5.2 to 4.6.0 in /.git… #619

Workflow file for this run

name: Publish
"on":
push:
branches:
- "master"
tags:
- "v*"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
if: ${{ github.actor != 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }}
env:
IMAGE_NAME: docker.io/tungbeier/gcloud-pubsub-emulator
steps:
- name: Check out the repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: |
${{ env.IMAGE_NAME }}
flavor: |
latest=auto
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
labels: |
org.opencontainers.image.vendor=tungbeier
org.opencontainers.image.maintainer=tung.beier@gmx.de
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- name: Log in to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Scan image
uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0
id: scan
with:
image: '${{ env.IMAGE_NAME }}:latest'
fail-build: false
only-fixed: true
- name: Upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}