Skip to content

Commit

Permalink
fix(prune-pull-requests-images-tags): define proper permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <[email protected]>
Signed-off-by: Emilien Escalle <[email protected]>
  • Loading branch information
neilime committed Jul 16, 2024
1 parent 2483df9 commit 7282004
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/prune-pull-requests-images-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ on:

permissions:
contents: read
pull-requests: read
packages: write
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
id-token: write

jobs:
main:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/prune-pull-requests-images-tags.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Prune pull requests images tags
# ==========================
# Workflow to performs a clean of closed pull requests images tags.
# See <../../actions/docker/prune-pull-requests-image-tags/README.md> for more information.
# See [prune-pull-requests-image-tags](../../actions/docker/prune-pull-requests-image-tags/README.md) for more information.
---
name: Prune pull requests images tags

on:
workflow_call:
#checkov:skip=CKV_GHA_7: required
inputs:
runs-on:
description: |
Expand Down Expand Up @@ -34,7 +35,10 @@ on:

permissions:
contents: read
pull-requests: read
packages: write
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
id-token: write

jobs:
prepare-variables:
Expand Down

0 comments on commit 7282004

Please sign in to comment.