mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-26 20:51:08 -05:00
* Potential fix for code scanning alert no. 7: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 9: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 10: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 19: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 20: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Set permissions in GitHub workflow jobs --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
28 lines
718 B
YAML
28 lines
718 B
YAML
name: Delete old container images
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *" # every day at midnight
|
|
|
|
permissions:
|
|
packages: write
|
|
|
|
jobs:
|
|
dev-clean-ghcr:
|
|
name: Delete old unused dev container images
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Delete dev branch containers older than a month
|
|
uses: snok/container-retention-policy@b56f4ff7539c1f94f01e5dc726671cd619aa8072 # v2.2.1
|
|
with:
|
|
image-names: qdrant
|
|
cut-off: A month ago UTC
|
|
account-type: org
|
|
org-name: qdrant
|
|
keep-at-least: 10
|
|
filter-tags: dev-*
|
|
token-type: github-token
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
dry-run: true
|