tempo/.github/workflows/drone-signature-check.yml
Zack Zehring fa9b7ad5ad fix(drone-sig): add missing contents: read permission (#4472)
Currently, the workflow is broken as the reusable workflow requires `id-token: write` _and_ `contents: read`, but since we have overridden the default permissions, we need to re-add `contents: read`. 

[Workflow error example](https://github.com/grafana/tempo/actions/runs/12400150268):

> The workflow is not valid. .github/workflows/drone-signature-check.yml (Line: 17, Col: 3): Error calling workflow 'grafana/shared-workflows/.github/workflows/check-drone-signature.yaml@main'. The nested job 'check-drone-signature' is requesting 'contents: read', but is only allowed 'contents: none'.
2024-12-19 16:48:35 +05:30

24 lines
465 B
YAML

name: Check Drone CI Signature
on:
push:
branches:
- "main"
paths:
- ".drone/drone.yml"
pull_request:
paths:
- ".drone/drone.yml"
permissions:
id-token: write
contents: read
jobs:
drone-signature-check:
# only run in grafana/tempo.
if: github.repository == 'grafana/tempo'
uses: grafana/shared-workflows/.github/workflows/check-drone-signature.yaml@main
with:
drone_config_path: .drone/drone.yml