You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to use this in tandem with https://github.com/tenjaa/concourse-github-app-token which uses an App ID and priv key to request an ephemeral token rather than relying on an individuals personal access token, however since this requires the token be defined at the resource level, I'm not sure how to get the token passed to the in: stage on a get task.
We're doing enough requests that we must have a token to query for releases or else we hit the API limit.
Describe the solution you'd like
I should be able to pass a github access token in at the in: stage so I can do the following with the two resources:
- name: github-tokentype: github-token-resourcesource:
appId: 123456# can be looked up on the overview page of your appprivateKey: ((pem_private_key_secret)) # https://docs.github.com/en/developers/apps/authenticating-with-github-apps#generating-a-private-keyorg: OurTeamsOrg # get a token for an app installed to an org account
- name: gh-goss-releasetype: github-releasecheck_every: neversource:
owner: aelsabbahyrepository: gosstag_filter: "^v([^-]|-[^r]|-r[^c].)*$"jobs:
- name: get-3rd-party-packages-and-sync-to-internal-repoplan:
- put: github-token # put forces to get a new token, even when rerunning a build (https://concourse-ci.org/builds.html#build-rerunning)
- load_var: tokenfile: github-token/token
- get: gh-goss-releaseparams:
access_token: ((token))
Describe alternatives you've considered
Not sure there's another way to properly do this auth without creating accounts for bots which is against Githubs current policies/best practices.
Additional context
I may have missed something, if this is possible already please educate.
The text was updated successfully, but these errors were encountered:
crouth-redge
changed the title
Support Request (Maybe Feature): How do we use ephermeral Github tokens with this?
Support Request (Maybe Feature): How do we use ephemeral Github tokens with this?
Aug 15, 2023
Is your feature request related to a problem? Please describe.
I'm trying to use this in tandem with https://github.com/tenjaa/concourse-github-app-token which uses an App ID and priv key to request an ephemeral token rather than relying on an individuals personal access token, however since this requires the token be defined at the resource level, I'm not sure how to get the token passed to the
in:
stage on a get task.We're doing enough requests that we must have a token to query for releases or else we hit the API limit.
Describe the solution you'd like
I should be able to pass a github access token in at the
in:
stage so I can do the following with the two resources:Describe alternatives you've considered
Not sure there's another way to properly do this auth without creating accounts for bots which is against Githubs current policies/best practices.
Additional context
I may have missed something, if this is possible already please educate.
The text was updated successfully, but these errors were encountered: