Authenticate to an Environment without Lock (SFP Server)
Learn how to authenticate to Salesforce environments through SFP server without locking for read-only operations and concurrent access scenarios
The authToEnvironmentWithoutLock action provides streamlined authentication to Salesforce environments through SFP server without acquiring an exclusive lock. This enables multiple workflows to access the same environment simultaneously, making it ideal for read-only operations, monitoring, and scenarios where concurrent access is safe.
Overview
When performing read-only operations or non-conflicting tasks on Salesforce environments, exclusive locking is often unnecessary and can create bottlenecks. The authentication without lock action provides:
Concurrent environment access allowing multiple workflows to run simultaneously
Faster authentication by skipping the lock acquisition process
Read-only safety for operations that don't modify the environment
Reduced wait times in busy CI/CD pipelines
Simplified workflow logic when locks aren't needed
This makes it perfect for:
Data queries and exports
Environment health checks
Monitoring and reporting
Test execution (read-only)
Metadata inspection
Any non-modifying operations
How It Works
The action follows this streamlined workflow:
Prerequisites
Before using this action in your custom workflow, ensure:
Your workflow uses the sfops Docker image - Required for SFP CLI and dependencies:
SFP server credentials are configured:
SFP_SERVER_URL as a variable
SFP_SERVER_TOKEN as a secret
Environment is registered in SFP server - This action only works with environments managed by SFP server
Referencing the Action
The authToEnvironmentWithoutLock action is located in your sfops repository. In all examples below, the action is referenced using:
The ${{ sfops.repo_owner }}/${{ sfops.action_repository }} template variables are automatically replaced with your organization and sfops repository name (e.g., flxbl-io/sfops-gh-actions).
Basic Usage
Simple Authentication for Read Operations
The minimal configuration for authentication without locking:
Parallel Environment Checks
Run concurrent checks across multiple environments: