zizmor/tests/integration/test-data/cache-poisoning/issue-642-repro.yml
2025-05-09 20:08:45 -04:00

39 lines
1.1 KiB
YAML

# repro case for https://github.com/zizmorcore/zizmor/issues/642
name: issue-642
on: push
permissions: {}
jobs:
issue-642-true-positive:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5
with:
cache-binary: true
version: latest
- name: Build docker
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
with:
cache-from: type=gha
cache-to: type=gha,mode=max
issue-642-true-negative:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5
with:
# cache-binary is set but version is not, meaning that
# caching is not actually used.
cache-binary: true
- name: Build docker
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
with:
cache-from: type=gha
cache-to: type=gha,mode=max