Class GithubCredentials

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:43.082Z")
    @Stability(Experimental)
    public class GithubCredentials
    extends software.amazon.jsii.JsiiObject
    (experimental) Represents a method of providing GitHub API access for projen workflows.
    • Constructor Detail

      • GithubCredentials

        protected GithubCredentials​(software.amazon.jsii.JsiiObjectRef objRef)
      • GithubCredentials

        protected GithubCredentials​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Method Detail

      • fromApp

        @Stability(Experimental)
        @NotNull
        public static GithubCredentials fromApp​(@Nullable
                                                GithubCredentialsAppOptions options)
        (experimental) Provide API access through a GitHub App.

        The GitHub App must be installed on the GitHub repo, its App ID and a private key must be added as secrets to the repo. The name of the secrets can be specified here.

        Default: - app id stored in "PROJEN_APP_ID" and private key stored in "PROJEN_APP_PRIVATE_KEY" with all permissions attached to the app

        Parameters:
        options -
        See Also:
        https://projen.io/github.html#github-app
      • fromApp

        @Stability(Experimental)
        @NotNull
        public static GithubCredentials fromApp()
        (experimental) Provide API access through a GitHub App.

        The GitHub App must be installed on the GitHub repo, its App ID and a private key must be added as secrets to the repo. The name of the secrets can be specified here.

        Default: - app id stored in "PROJEN_APP_ID" and private key stored in "PROJEN_APP_PRIVATE_KEY" with all permissions attached to the app

        See Also:
        https://projen.io/github.html#github-app
      • getSetupSteps

        @Stability(Experimental)
        @NotNull
        public List<JobStep> getSetupSteps()
        (experimental) Setup steps to obtain GitHub credentials.
      • getTokenRef

        @Stability(Experimental)
        @NotNull
        public String getTokenRef()
        (experimental) The value to use in a workflow when a GitHub token is expected.

        This typically looks like "${{ some.path.to.a.value }}".