Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actions/github-token/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
*.tsbuildinfo
.eslintcache
pnpm-lock.yaml
!dist/
3 changes: 3 additions & 0 deletions .github/actions/github-token/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
node_modules/
pnpm-lock.yaml
33 changes: 33 additions & 0 deletions .github/actions/github-token/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: "Get GitHub Token"
description: >
Obtains a scoped GitHub installation token from the Immutable Token Service.
The calling workflow must set permissions: id-token: write.

inputs:
repositories:
description: |
Newline-separated list of repositories to request access for.
Each entry must be in "owner/repo" format and must have a token policy
entry in the Token Service permitting the calling repository.
Example:
immutable/shared-config
immutable/internal-libs
required: true
permissions:
description: |
Newline-separated list of permissions to request, in "key: value" format.
Defaults to "contents: read" if not supplied.
The requested permissions must be within the ceiling defined in the Token Service policy.
Example:
contents: write
pull_requests: write
required: false

outputs:
token:
description: "Scoped GitHub installation token returned by the Token Service"

runs:
using: "node24"
main: "dist/index.js"
Loading
Loading