Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override API connection via step inputs #43

Merged
merged 3 commits into from Aug 12, 2022

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Aug 11, 2022

Checklist

  • I've read and followed the Contribution Guidelines
  • step.yml and README.md is updated with the changes (if needed)

Version

Requires a MAJOR/MINOR/PATCH version update

Context

Enables overriding App Store Connect API connection through step inputs.

go-xcode PR: bitrise-io/go-xcode#184

Changes

  • Pull changes in go-xcode
  • Add new inputs for the connection parameters

Investigation details

Decisions

@@ -205,13 +211,19 @@ func (s Step) createCodesignManager(inputs Inputs, xcodeMajorVersion int) (codes

var serviceConnection *devportalservice.AppleDeveloperConnection = nil
devPortalClientFactory := devportalclient.NewFactory(s.logger)
if authType == codesign.APIKeyAuth || authType == codesign.AppleIDAuth {
if inputs.BuildURL != "" && inputs.BuildAPIToken != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could still skip creating connection if authType is off.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "off" option is handled at the beginning of createCodesignmanager(). In fact this whole function is not called if automatic code signing is off.

@ofalvai ofalvai marked this pull request as ready for review August 12, 2022 07:07
@ofalvai ofalvai merged commit 85912c3 into master Aug 12, 2022
@ofalvai ofalvai deleted the STEP-2025-api-connection-override branch August 12, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants