Skip to content

Use Pulumi GitHub provider's getActionsRegistrationToken instead of raw API call #851

Description

@deekay2310

Runner registration tokens are currently generated via a raw HTTP call to the GitHub API (pkg/integrations/github/api.go), outside the Pulumi lifecycle. On mapt destroy, the VM is deleted but the runner is never deregistered from GitHub.

Replace with Pulumi's github.getActionsRegistrationToken (https://www.pulumi.com/registry/packages/github/api-docs/getactionsregistrationtoken/) data source. This ties token generation to the Pulumi stack and could enable automatic runner deregistration on destroy. This could also fix the stale runner / name collision problem.

Ref: #831 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions