https://github.com/hetznercloud/tps-action
Github Action to setup a temporary Hetzner Cloud Token
https://github.com/hetznercloud/tps-action
Last synced: 2 months ago
JSON representation
Github Action to setup a temporary Hetzner Cloud Token
- Host: GitHub
- URL: https://github.com/hetznercloud/tps-action
- Owner: hetznercloud
- License: mit
- Created: 2023-05-12T06:40:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T18:37:51.000Z (over 2 years ago)
- Last Synced: 2025-01-18T04:43:37.762Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TPS Action
GitHub Action to create temporary Hetzner Cloud API Tokens. This action uses the Temporary Project Service (hence the name) to create a new project and associated API Token for the CI run. It authenticates using the GitHub provided OIDC token for the pipeline run.
### This project is not an official Hetzner Cloud Integration and is intended to be used by our other repositories.
## Usage
```yaml
on:
pull_request: {}
push:
branches: [main]
jobs:
demo:
permissions:
# This is required so the pipeline can generate an oauth token.
id-token: write
runs-on: ubuntu-latest
steps:
- # We do not provide explicit releases for the action right now, so use
# the main branch to be up to date, or lock to a specific commit.
uses: hetznercloud/tps-action@main
with:
# Optional: If an explicit token is passed, it will be used instead
# of TPS. This can be helpful to debug issues in another account,
# or for usage from a fork where the oauth permissions are not available.
token: ${{ secrets.HCLOUD_TOKEN }}
- uses: hetznercloud/setup-hcloud@v1
- # The action set the environment variable HCLOUD_TOKEN, so all
# subsequent steps in the same job can use it.
run: hcloud server-type list
```
## License
MIT License