Skip to content

Commit

Permalink
Fix permissions (#89)
Browse files Browse the repository at this point in the history
* Fix permissions

* Fix permissions

* Set correct permissions to action
  • Loading branch information
s-vitaliy authored May 28, 2024
1 parent c5ca98d commit ef79b8f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/cleanup-repository.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Remove old artifacts
on:
# schedule:
# - cron: '0 12 * * *' # every day at 12:00 UTC
schedule:
- cron: '0 12 * * *' # every day at 12:00 UTC
workflow_dispatch:

jobs:
remove_old_artifacts:
name: Remove old artifacts
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

timeout-minutes: 10 # stop the task if it takes longer

steps:
Expand All @@ -17,7 +21,7 @@ jobs:
with:
package-name: 'arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

Expand All @@ -26,6 +30,6 @@ jobs:
with:
package-name: 'helm/arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

0 comments on commit ef79b8f

Please sign in to comment.