Configure Endor Labs to integrate with private Swift package repositories to access proprietary dependencies during security scanning and analysis. When your Swift projects depend on packages hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials. This integration enables Endor Labs to:Documentation Index
Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
Use this file to discover all available pages before exploring further.
- Access private Swift packages during dependency resolution
- Generate comprehensive security analysis including private dependencies
- Maintain complete visibility into your software supply chain
- Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files.
- Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning.
- Sign in to Endor Labs and select Integrations from the left sidebar.
- Click Add next to the package manager configuration you want to add.
- Click Add Package Manager.
- Enter the name of the package manager.
- Select either Basic or AWS Code Artifactory as Authentication Type. See AWS authentication for more information.
Authenticate to Swift private package repositories
To connect to private repositories of Swift Package Manager enter the package manager URL and the package registry credentials such as username and password.
Test package manager integration
You can test the connection to a configured package manager to verify that Endor Labs can reach the repository. To test the connection:- Select Integrations from the left sidebar.
- Click Manage in the package manager configuration you want to customize.
- Click the vertical three dots of the package manager configured and select Test Connection.
The integration does not perform authentication or authorization checks on the package manager repository.
Edit package manager integration
Package manager integration for SwiftPM using API
Use endorctl to create a package manager resource for your private swift registry and authenticate using one of the following methods:- Basic authentication using username and password
- Authentication token
Basic authentication using username and password
Run the following command to create a package manager resource and authenticate to Swift registry using basic authentication credentials with scope. Replace:namespacewith your namespace.usernamewith your usernamexxxxwith your password.scopewith your scope. For example,"scope":"abc-corp".
Authentication token
Run the following command to create a package manager resource and authenticate to Swift registry using authentication token with scope. Replace:namespacewith your namespacetokenwith your Swift registry authentication token.scopewith your scope. For example,"scope":"abc-corp".