elastic / elastic/ecs-logging-ruby

Replace tibdex/github-app-token with actions/create-github-app-token

Open
#71 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
agent-ruby
Dominant language
Ruby
Stars
8
Forks
10
PR merge metrics
No merged PRs in 30d

Description

# Overview

The action `tibdex/github-app-token` is archived, so we have to change to use a different action. The action `actions/create-github-app-token` offered a similar functionality.

# Steps

* List the .github/actions and .github/workflows using `tibdex/github-app-token`
* Replace `tibdex/github-app-token` with the same configuration using `actions/create-github-app-token` for all the .github/actions and workflows.
* Link the PR to this issue as closed by the PR.

# Example

The following configuration with `tibdex/github-app-token`

```yaml
- name: Get token
id: get_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private_key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
repositories: >-
[
"oblt-framework",
"observability-test-environments"
]
permissions: >-
{
"contents": "write",
"pull_requests": "write",
"members": "read"
}
```

it is replaced by the following configuration with `actions/create-github-app-token`

```yaml
- name: Get token from GitHub App
id: get_token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
permission-contents: write
permission-pull-requests: write
permission-members: read
repositories: |
oblt-framework
observability-test-environments
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.