-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1532 from binbin-li/clean-package
ci: add job to delete dev package versions
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |