Skip to content

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

@v1v

Description

@v1v

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

      - 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

    - 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions