Skip to content

Commit bee5042

Browse files
committed
fix(workflows/docker-build-images): add permissions to get pull request number from issue comment
1 parent 9d15449 commit bee5042

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/docker-build-images.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ on:
4747
description: "Password or GitHub token (packages:read and packages:write scopes) used to log against the OCI registry. See https://github.com/docker/login-action#usage"
4848
required: true
4949

50-
permissions:
51-
contents: read
52-
packages: write
53-
5450
jobs:
5551
prepare-variables:
5652
outputs:
@@ -125,6 +121,7 @@ jobs:
125121
permissions:
126122
contents: read
127123
pull-requests: read
124+
issues: read
128125
packages: write
129126
steps:
130127
- id: build

actions/docker/build-image/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ runs:
140140
core.setFailed(`No tags found for the current event: ${context.eventName}`);
141141
142142
- id: docker-metadata
143-
# FIXME: workaround until will be merged: https://github.com/docker/metadata-action/pull/248
144-
uses: escemi-tech/metadata-action@add-option-to-choose-between-git-or-workflow-context
143+
# FIXME: use stable version
144+
uses: docker/metadata-action@master
145145
with:
146146
images: ${{ steps.image-name.outputs.image-name-with-registry }}
147147
tags: ${{ steps.define-meta-tags.outputs.result }}

0 commit comments

Comments
 (0)