Skip to content

Commit 7282004

Browse files
committed
fix(prune-pull-requests-images-tags): define proper permissions
Signed-off-by: Emilien Escalle <neilime@users.noreply.github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 2483df9 commit 7282004

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/prune-pull-requests-images-tags.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ on:
2727

2828
permissions:
2929
contents: read
30+
pull-requests: read
3031
packages: write
32+
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
33+
id-token: write
3134

3235
jobs:
3336
main:

.github/workflows/prune-pull-requests-images-tags.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Prune pull requests images tags
22
# ==========================
33
# Workflow to performs a clean of closed pull requests images tags.
4-
# See <../../actions/docker/prune-pull-requests-image-tags/README.md> for more information.
4+
# See [prune-pull-requests-image-tags](../../actions/docker/prune-pull-requests-image-tags/README.md) for more information.
55
---
66
name: Prune pull requests images tags
77

88
on:
99
workflow_call:
10+
#checkov:skip=CKV_GHA_7: required
1011
inputs:
1112
runs-on:
1213
description: |
@@ -34,7 +35,10 @@ on:
3435

3536
permissions:
3637
contents: read
38+
pull-requests: read
3739
packages: write
40+
# FIXME: This is a workaround for having workflow actions. See https://github.com/orgs/community/discussions/38659
41+
id-token: write
3842

3943
jobs:
4044
prepare-variables:

0 commit comments

Comments
 (0)