https://github.com/coder/setup-action
Downloads and Configures Coder.
https://github.com/coder/setup-action
automation ci coder
Last synced: about 2 months ago
JSON representation
Downloads and Configures Coder.
- Host: GitHub
- URL: https://github.com/coder/setup-action
- Owner: coder
- License: mit
- Created: 2024-07-01T07:31:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-07T08:45:35.000Z (about 1 year ago)
- Last Synced: 2025-06-13T14:06:47.030Z (7 months ago)
- Topics: automation, ci, coder
- Homepage: https://coder.com
- Size: 13.7 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup [Coder](https://github.com/coder/coder)
Downloads and authenticates Coder's CLI with your Coder server. This action can be used to run authenticated Coder commands in GitHub Action workflows.
## Usage
Create a GitHub secret named `CODER_SESSION_TOKEN` with your coder session token
You can generate a long lived session token by running the following command in
your browser console while logged into Coder with a **Template Admin** or
**Owner** role.
```shell
coder token create --lifetime 8760h --name "GitHub Actions"
```
```yaml
jobs:
setup-coder:
runs-on: ubuntu-latest
steps:
- name: Setup Coder
uses: coder/setup-action@v1
with:
access_url: 'https://coder.example.com'
coder_session_token: ${{ secrets.CODER_SESSION_TOKEN }}
```
## Inputs
| Name | Description | Default |
| ------------------------- | ----------------------------------------------------------------------------- | ------- |
| **`access_url`** | **Required** The url of coder deployment (e.g. ). | - |
| **`coder_session_token`** | **Required** The session token of coder. | - |