Skip to content

ci: use GitHub app for ephemeral tokens #101

ci: use GitHub app for ephemeral tokens

ci: use GitHub app for ephemeral tokens #101

name: test-oblt-cli-run
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/test-oblt-cli-run.yml'
- 'oblt-cli/run/**'
push:
branches:
- main
paths:
- '.github/workflows/test-oblt-cli-run.yml'
- 'oblt-cli/run/**'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get token
id: get_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permissions: >-
{
"contents": "READ"
}
repositories: >-
["observability-test-environments"]
- uses: ./oblt-cli/run
with:
github-token: ${{ steps.get_token.outputs.token }}
command: cluster --help