We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec6bb9 commit 0142887Copy full SHA for 0142887
.github/workflows/ghcr-image-build-and-publish.yml
@@ -104,3 +104,20 @@ jobs:
104
DIGEST: ${{ steps.push.outputs.digest }}
105
TAGS: ${{ steps.meta.outputs.tags }}
106
run: echo "${TAGS}" | xargs -I {} cosign sign --yes "{}@${DIGEST}"
107
+
108
+ test-permissions:
109
+ runs-on: [ubuntu-latest]
110
+ permissions:
111
+ contents: read
112
+ id-token: write
113
+ steps:
114
+ - name: Get GitHub token
115
+ id: get-token
116
+ uses: grafana/shared-workflows/actions/create-github-app-token@ae92934a14a48b94494dbc06d74a81d47fe08a40 # v0.2.2
117
+ with:
118
+ github_app: grafana-otel-bot
119
+ permission_set: default
120
+ - name: Show token permissions
121
+ run: |
122
+ echo "${{ steps.get-token.outputs.token }}" | gh auth login --with-token
123
+ gh auth status
0 commit comments