Skip to content

.github/workflows/withdraw-repos.yaml #20

.github/workflows/withdraw-repos.yaml

.github/workflows/withdraw-repos.yaml #20

on:
workflow_dispatch:
inputs:
dry_run:
type: boolean
default: 'true'
description: If true, just log
permissions:
contents: read
jobs:
withdraw:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: chainguard-dev/setup-chainctl@f52718d822dc73d21a04ef2082822c4a203163b3 # v0.2.2
with:
identity: 720909c9f5279097d847ad02a2f24ba8f59de36a/b6461e99e132298f
- run: |
for repo in $(grep -v '\#' withdrawn-repos.txt); do
if [[ "${{ github.event.inputs.dry_run }}" == "false" ]]; then
chainctl image repo rm $repo || true
else
echo "DRY RUN: chainctl image repo rm $repo || true"
fi
done