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
{{ message }}
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.
When it comes to Python sadly there is not such private and public packages, to overcome this we can use private GitHub repo (pip3 install git+https://$GITHUB_ACCESS_TOKEN:[email protected]/blaabla/blabla.git), but to be able to do so within the codebuild project we need to have access to the GITHUB_ACCESS_TOKEN.
@rclark Do you think we could add this variable into the project ?
The text was updated successfully, but these errors were encountered:
tl;dr Stork has a Github authentication rats nest that needs to get unraveled before we can think clearly about adding more github-access-functionality to the project. I don't really know what direction to take to clean this up, but I don't feel ok with exposing the Github token provided as a stack parameter to the CodeBuild projects at runtime.
GithubAppInstallationId: {Type: 'String',Description: 'The installation ID of your Github app'},
GithubAppPrivateKey: {Type: 'String',Description: '[secure] A private key for your Github app'},
GithubAccessToken: {Type: 'String',Description: '[secure] A personal access token that can update Github Apps'},
Github App
GithubApp* parameters allow you to safely provide stork with the details of a GithubApp. An app is easier for security teams to monitor and track than a machine user's personal access token.
... and to look for .stork.json and .buildspec.yml files in the github repo that's being built.
The Github app integration also sends webhook payloads to a stork stack whenever one of the repositories that it is watching gets a commit.
Personal token
Github Apps have a list of repositories that they watch. It turns out that a user cannot add or remove repositories from that list unless they use a personal access token, and that token must have admin-level permission to the entire github organization.
Stork's "gatekeeper" lambda function is a workaround this Github limitation. By authenticating themselves via AWS and being able to invoke the Lambda function, any person can add add/remove a repository to be watched / built by stork.
Right now we only pass the
NPM_ACCESS_TOKEN
variable in the codebuild project to be able to install nodejs package from public and private repo.stork/lambda.js
Line 124 in b6d8990
When it comes to Python sadly there is not such private and public packages, to overcome this we can use private GitHub repo (
pip3 install git+https://$GITHUB_ACCESS_TOKEN:[email protected]/blaabla/blabla.git
), but to be able to do so within the codebuild project we need to have access to theGITHUB_ACCESS_TOKEN
.@rclark Do you think we could add this variable into the project ?
The text was updated successfully, but these errors were encountered: