diff --git a/action.yml b/action.yml index bce8f419..47c9f259 100644 --- a/action.yml +++ b/action.yml @@ -142,6 +142,7 @@ runs: SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }} SPEAKEASY_SERVER_URL: ${{ inputs.speakeasy_server_url }} OPENAI_API_KEY: ${{ inputs.openai_api_key }} + OPENAPI_DOC_AUTH_TOKEN: ${{ inputs.openapi_doc_auth_token }} args: - ${{ inputs.speakeasy_version }} - ${{ inputs.github_access_token }} diff --git a/internal/actions/runWorkflow.go b/internal/actions/runWorkflow.go index ab40b992..be542c3d 100644 --- a/internal/actions/runWorkflow.go +++ b/internal/actions/runWorkflow.go @@ -2,6 +2,7 @@ package actions import ( "fmt" + "os" "github.com/hashicorp/go-version" "github.com/speakeasy-api/sdk-generation-action/internal/configuration" @@ -20,6 +21,10 @@ func RunWorkflow() error { return err } + fmt.Println("WE ARE HERE") + fmt.Println(os.Getenv("INPUT_OPENAPI_DOC_AUTH_TOKEN")) + fmt.Println(os.Getenv("OPENAPI_DOC_AUTH_TOKEN")) + resolvedVersion, err := cli.Download(environment.GetPinnedSpeakeasyVersion(), g) if err != nil { return err