Skip to content

Pinning actions to a full length commit SHA #244

Pinning actions to a full length commit SHA

Pinning actions to a full length commit SHA #244

Workflow file for this run

---
name: Docker Hub
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions: {}
jobs:
pull:
strategy:
matrix:
platform: ['linux/amd64', 'linux/arm64']
runs-on: ubuntu-latest
steps:
- name: Set IMAGE
run: echo "IMAGE=${GITHUB_REPOSITORY#*/docker-}" >> "${GITHUB_ENV}"
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Pull the latest ${{ matrix.platform }} image
run: docker pull --platform "${{ matrix.platform }}" "${GITHUB_REPOSITORY_OWNER}/${IMAGE}"