Troubleshooting
Common issues and how to resolve them.
Scan workflow fails
Authentication error (Azure)
Symptom: The Azure Login step fails with “AADSTS700016” or “federated credential” errors.
Causes and fixes:
-
Federated credential doesn’t match – Verify the Organization, Repository, and Branch in the federated credential match your workflow exactly. The repository must be in the format
org/repo(case-sensitive). -
Wrong secret values – Double-check that
AZURE_CLIENT_ID_MAINcontains the Application (client) ID, not the Object ID. VerifyAZURE_TENANT_IDis the Directory (tenant) ID. -
App Registration deleted or disabled – Confirm the App Registration still exists in Azure AD.
Authentication error (AWS)
Symptom: The AWS Login step fails with “Not authorized to perform sts:AssumeRoleWithWebIdentity”.
Causes and fixes:
-
Trust policy too restrictive – Ensure the IAM role’s trust policy includes your repository. The
subcondition should matchrepo:YOUR_ORG/YOUR_REPO:*. -
OIDC provider missing – Verify the GitHub Actions OIDC provider exists in your AWS account under IAM > Identity providers.
-
Wrong role ARN – Confirm
AWS_ROLE_ARN_MAINcontains the full ARN (e.g.,arn:aws:iam::123456789012:role/leftsize-scanner).
No findings after successful scan
Possible reasons:
- Your infrastructure is well-optimized (no issues found).
- The scan ran against an empty or very small environment.
- Metrics data hasn’t accumulated yet – many rules require 14-30 days of CloudWatch/Monitor data. If you recently deployed resources, wait and re-scan.
- Check the
findings-countoutput in the workflow summary. If it shows0, no issues were detected.
Workflow shows “findings-submitted: false”
The LeftSize API couldn’t be reached or returned an error. Check:
LEFTSIZE_INSTALLATION_IDandLEFTSIZE_REPOSITORY_TOKENsecrets are set correctly- The LeftSize API is reachable (try manually triggering the workflow)
- You haven’t exceeded the repository limit (Free plan: 3 repositories)
Issue-related problems
No issues created after scan
Issues are only created when findings are detected. Check the workflow run logs for the findings-count output. If findings were submitted but no issues appeared:
- Check the repository’s Issues tab (issues might have different labels than expected)
- Verify Issues are enabled on the repository (Settings > General > Features > Issues)
Duplicate issues
LeftSize deduplicates issues by rule and scope. If you see duplicates, it may be because:
- The same resources appear in different scopes (e.g., different subscriptions or regions)
- A previous issue was manually deleted instead of being resolved through the normal lifecycle
Commands not responding
If @leftsize commands don’t get a response:
- Verify the issue was created by LeftSize (check the issue body for the LeftSize footer)
- Commands only work on LeftSize-created issues
- Allow a few seconds for the response – command processing is asynchronous
- Check that the command syntax is correct (see Commands)
Plan and billing
“Repository limit exceeded” error
Free plan accounts are limited to 3 repositories. To scan additional repositories, upgrade to the Pro plan.
Guidance commands show upgrade prompt
On the Free plan, guidance commands (@leftsize explain, howto, etc.) are only available for free-tier rules. If you use a guidance command on a Pro rule, you’ll see an upgrade prompt. See Rules for which rules are included in the Free plan.
Getting help
If your issue isn’t covered here:
- Check the FAQ
- Open an issue in this repository
- Contact us at support@leftsize.com