Skip to content

Commit

Permalink
Merge pull request #1532 from binbin-li/clean-package
Browse files Browse the repository at this point in the history
ci: add job to delete dev package versions
  • Loading branch information
binbin-li authored Jun 1, 2024
2 parents b9446ef + 3bafc56 commit 8a6f018
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/clean-dev-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: clean-dev-package

on:
workflow_dispatch:

permissions:
contents: read
packages: write

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 0: topLevel 'packages' permission set to 'write'
Remediation tip: Visit https://app.stepsecurity.io/secureworkflow.
Tick the 'Restrict permissions for GITHUB_TOKEN'
Untick other options
NOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead.
Click Remediation section below for further remediation help

jobs:
cleanup-packages:
runs-on: ubuntu-latest
steps:
- name: Clean up ratify-crds-dev
uses: actions/delete-package-versions@v5

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 9: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
with:
package-name: 'ratify-crds-dev'
package-type: 'container'
min-versions-to-keep: 7
delete-only-pre-release-versions: "true"
- name: Clean up ratify-dev
uses: actions/delete-package-versions@v5

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 9: GitHub-owned GitHubAction not pinned by hash
Click Remediation section below to solve this issue
with:
package-name: 'ratify-dev'
package-type: 'container'
min-versions-to-keep: 7
delete-only-pre-release-versions: "true"

0 comments on commit 8a6f018

Please sign in to comment.