Skip to content

fix: retrieve SF access token via show-access-token for e2e setup#1210

Merged
tprouvot merged 1 commit into
releaseCandidatefrom
fix/sf-cli-access-token-redaction
Jun 22, 2026
Merged

fix: retrieve SF access token via show-access-token for e2e setup#1210
tprouvot merged 1 commit into
releaseCandidatefrom
fix/sf-cli-access-token-redaction

Conversation

@tprouvot

Copy link
Copy Markdown
Owner

The Salesforce CLI security update (~May 2026) redacts the access token from sf org display (returns "[REDACTED] Use 'sf org auth show-access-token' to view"), which broke e2e test setup with 401s.

  • set-test-constants script and e2e workflow now fetch the token via sf org auth show-access-token --json (CI keeps ::add-mask::).
  • Mask real tokens (00D prefix) in the script's printed output while still showing placeholder values to aid diagnosis.
  • Document the CLI requirement in HOW_TO_RUN_TESTS.md.

Describe your changes

Issue ticket number and link

Checklist before requesting a review

  • I have read and understand the Contributions section
  • My PR relates to an existing issue or feature request and I discussed it with maintainer
  • I used SLDS style and limit the usage of custom CSS
  • I have performed a self-review of my code
  • I ran the unit tests and my PR does not break any tests
  • I documented the changes I've made on the CHANGES.md and followed actual conventions
  • I added a new section on how-to.md (optional)

The Salesforce CLI security update (~May 2026) redacts the access token
from `sf org display` (returns "[REDACTED] Use 'sf org auth
show-access-token' to view"), which broke e2e test setup with 401s.

- set-test-constants script and e2e workflow now fetch the token via
  `sf org auth show-access-token --json` (CI keeps `::add-mask::`).
- Mask real tokens (00D prefix) in the script's printed output while
  still showing placeholder values to aid diagnosis.
- Document the CLI requirement in HOW_TO_RUN_TESTS.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tprouvot tprouvot merged commit 8b4040d into releaseCandidate Jun 22, 2026
4 of 5 checks passed
tprouvot added a commit that referenced this pull request Jun 22, 2026
)

The Salesforce CLI security update (~May 2026) redacts the access token
from `sf org display` (returns "[REDACTED] Use 'sf org auth
show-access-token' to view"), which broke e2e test setup with 401s.

- set-test-constants script and e2e workflow now fetch the token via `sf
org auth show-access-token --json` (CI keeps `::add-mask::`).
- Mask real tokens (00D prefix) in the script's printed output while
still showing placeholder values to aid diagnosis.
- Document the CLI requirement in HOW_TO_RUN_TESTS.md.

# Describe your changes

## Issue ticket number and link

## Checklist before requesting a review

- [ ] I have **read and understand** the [Contributions
section](https://github.com/tprouvot/Salesforce-Inspector-reloaded#contributions)
- [ ] My PR relates to an existing issue or feature request and **I
discussed it with maintainer**
- [ ] I used SLDS style and limit the usage of custom CSS
- [ ] I have performed a self-review of my code
- [ ] I ran the [unit
tests](https://github.com/tprouvot/Salesforce-Inspector-reloaded#unit-tests)
and my PR does not break any tests
- [ ] I documented the changes I've made on the
[CHANGES.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/CHANGES.md)
and followed actual conventions
- [ ] I added a new section on
[how-to.md](https://github.com/tprouvot/Salesforce-Inspector-reloaded/blob/master/docs/how-to.md)
(optional)

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant