github-action: use ephemeral tokens with the required permissions (#1… #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: microbenchmark | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '**.asciidoc' | |
tags: | |
- "v*.*.*" | |
# limit the access of the generated GITHUB_TOKEN | |
permissions: | |
contents: read | |
jobs: | |
microbenchmark: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Run microbenchmark | |
uses: elastic/oblt-actions/buildkite/run@v1.5.0 | |
with: | |
pipeline: "apm-agent-microbenchmark" | |
token: ${{ secrets.BUILDKITE_TOKEN }} | |
wait-for: false | |
env-vars: | | |
script=scripts/ci/bench.sh | |
repo=apm-agent-go | |
sha=${{ github.sha }} |