Use kong instead of kingpin #1689
Annotations
22 errors and 1 warning
release-build (ubuntu-latest):
cmd/saml2aws/main.go#L11
no required module provides package github.com/alecthomas/kong; to add it:
|
release-build (ubuntu-latest)
The process '/opt/hostedtoolcache/goreleaser-action/2.4.4/x64/goreleaser' failed with exit code 1
|
Build (ubuntu-latest):
cmd/saml2aws/main.go#L11
no required module provides package github.com/alecthomas/kong; to add it:
|
Build (ubuntu-latest)
Process completed with exit code 1.
|
release-build (ubuntu-20.04)
The job was canceled because "ubuntu-latest" failed.
|
release-build (ubuntu-20.04)
The operation was canceled.
|
release-build (macos-latest)
The job was canceled because "ubuntu-latest" failed.
|
release-build (macos-latest)
The operation was canceled.
|
Build (macOS-latest)
The job was canceled because "ubuntu-latest" failed.
|
Build (macOS-latest)
The operation was canceled.
|
Build (macos-12)
The job was canceled because "ubuntu-latest" failed.
|
Build (macos-12)
The operation was canceled.
|
lint:
cmd/saml2aws/main.go#L143
cli.CommonFlags undefined (type CLI has no field or method CommonFlags) (typecheck)
|
lint:
cmd/saml2aws/main.go#L151
cannot use cli.Script (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; Shell string "help:\"Type of shell environment\" default:\"bash\" enum:\"bash,/bin/sh,powershell,fish,env\""}) as *flags.LoginExecFlags value in argument to commands.Script (typecheck)
|
lint:
cmd/saml2aws/main.go#L153
cannot use cli.Login (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; DuoMFAOption string "help:\"The MFA option you want to use to authenticate with\" env:\"SAML2AWS_DUO_MFA_OPTION\" enum:\"Passcode,Duo Push\""; ClientID string "help:\"OneLogin client id, used to generate API access token\" env:\"ONELOGIN_CLIENT_ID\""; ClientSecret string "help:\"OneLogin client secret, used to generate API access token\" env:\"ONELOGIN_CLIENT_SECRET\""; MFAIPAddress string "help:\"IP address whitelisting defined in OneLogin MFA policies\" env:\"ONELOGIN_MFA_IP_ADDRESS\""; Force bool "help:\"Refresh credentials even if not expired\""; CredentialProcess bool "help:\"Enables AWS Credential Process support by outputting credentials to STDOUT in a JSON message\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""; DownloadBrowser bool "help:\"Automatically download browsers for Browser IDP\" env:\"SAML2AWS_AUTO_BROWSER_DOWNLOAD\""; DisableSessions bool "help:\"Do not use Okta sessions\" env:\"SAML2AWS_OKTA_DISABLE_SESSIONS\""; DisableRemember bool "help:\"Do not remember Okta MFA device\" env:\"SAML2AWS_OKTA_DISABLE_REMEMBER_DEVICE\""}) as *flags.LoginExecFlags value in argument to commands.Login (typecheck)
|
lint:
cmd/saml2aws/main.go#L155
cannot use cli.Exec (variable of type struct{Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; ExecProfile string "help:\"The AWS profile to utilize for command execution\" env:\"SAML2AWS_EXEC_PROFILE\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; Command []string "arg:\"\" name:\"command\" help:\"The command to execute\""}) as *flags.LoginExecFlags value in argument to commands.Exec (typecheck)
|
lint:
cmd/saml2aws/main.go#L157
cannot use cli.Console (variable of type struct{ExecProfile string "help:\"The AWS profile to utilize for console execution\" env:\"SAML2AWS_EXEC_PROFILE\""; Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; Force bool "help:\"Refresh credentials even if not expired\""; Link bool "help:\"Present link to AWS console instead of opening browser\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""}) as *flags.ConsoleFlags value in argument to commands.Console (typecheck)
|
lint:
cmd/saml2aws/main.go#L159
cannot use cli.ListRoles (variable of type struct{SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""}) as *flags.LoginExecFlags value in argument to commands.ListRoles (typecheck)
|
lint:
cmd/saml2aws/main.go#L161
cannot use cli.Configure (variable of type struct{AppID string "help:\"OneLogin app id required for SAML assertion\" env:\"ONELOGIN_APP_ID\""; ClientID string "help:\"OneLogin client id, used to generate API access token\" env:\"ONELOGIN_CLIENT_ID\""; ClientSecret string "help:\"OneLogin client secret, used to generate API access token\" env:\"ONELOGIN_CLIENT_SECRET\""; Subdomain string "help:\"OneLogin subdomain of your company account\" env:\"ONELOGIN_SUBDOMAIN\""; MFAIPAddress string "help:\"IP address whitelisting defined in OneLogin MFA policies\" env:\"ONELOGIN_MFA_IP_ADDRESS\""; Profile string "help:\"The AWS profile to save the temporary credentials\" env:\"SAML2AWS_PROFILE\""; ResourceID string "help:\"F5APM SAML resource ID of your company account\" env:\"SAML2AWS_F5APM_RESOURCE_ID\""; CredentialsFile string "help:\"The file that will cache the credentials retrieved from AWS\" env:\"SAML2AWS_CREDENTIALS_FILE\""; SAMLCache bool "help:\"Caches the SAML response\" env:\"SAML2AWS_CACHE_SAML\""; SAMLCacheFile string "help:\"The location of the SAML cache file\" env:\"SAML2AWS_SAML_CACHE_FILE\""; DisableSessions bool "help:\"Do not use Okta sessions\" env:\"SAML2AWS_OKTA_DISABLE_SESSIONS\""; DisableRemember bool "help:\"Do not remember Okta MFA device\" env:\"SAML2AWS_OKTA_DISABLE_REMEMBER_DEVICE\""}) as *flags.CommonFlags value in argument to commands.Configure (typecheck)
|
lint:
cmd/saml2aws/main.go#L13
"github.com/versent/saml2aws/v2" imported as saml2aws and not used (typecheck)
|
lint:
cmd/saml2aws/main.go#L15
"github.com/versent/saml2aws/v2/pkg/flags" imported and not used (typecheck)
|
lint
issues found
|
release-build (ubuntu-latest)
You are using 'latest' as default version. Will lock to '~> v2'.
|