Skip to content

build(deps): bump the github-actions group across 6 directories with … #93

build(deps): bump the github-actions group across 6 directories with …

build(deps): bump the github-actions group across 6 directories with … #93

name: test-oblt-cli-cluster-credentials
on:
workflow_dispatch: ~
push:
paths:
- '.github/workflows/test-oblt-cli-cluster-credentials.yml'
- 'oblt-cli/cluster-credentials/**'
permissions:
contents: read
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: elastic/oblt-actions/google/auth@v1
- 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/cluster-credentials
with:
github-token: ${{ steps.get_token.outputs.token }}
cluster-name: 'dev-oblt'
- run: curl -X GET "${ELASTICSEARCH_HOST}/_cat/indices?v" -u "${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}"