Reusable GitHub Actions for lowRISC CI workflows.
Obtains a short-lived token from the lowRISC CA, using GitHub's OIDC provider to authenticate the request.
Requires id-token: write in the calling job.
| Input | Description | Default |
|---|---|---|
audience |
Intended audience for the GitHub OIDC JWT | https://ca.lowrisc.org |
ca_api_endpoint |
lowRISC CA endpoint from which to obtain a token | https://ca.lowrisc.org/api/github/repos/<repo>/token |
ca_api_method |
HTTP method to use when requesting a token from the CA endpoint | POST |
| Output | Description |
|---|---|
token |
Short-lived token |
jobs:
build:
permissions:
id-token: write
steps:
- name: Get a lowRISC CA token
id: get-token
uses: lowrisc/ci-actions/ca-token@v1
- name: Use token
run: |
some-tool login https://example.lowrisc.org/ ${{ steps.get-token.outputs.token }}To override the CA endpoint or HTTP method:
- uses: lowrisc/ci-actions/ca-token@v1
with:
ca_api_endpoint: "https://ca.lowrisc.org/api/nix-caches/public/token"
ca_api_method: "GET"Copyright lowRISC contributors. SPDX-License-Identifier: MIT