Commit 6afc65a
committed
ci: Authenticate update-flagsmith-environment via OIDC
Replace the static FLAGSMITH_API_KEY secret with Flagsmith/setup-cli,
which installs the CLI and exchanges the job's GitHub OIDC token for a
short-lived access token via the org's trust relationship.
The action skips the exchange when a credential is already in the
environment, so the job-level FLAGSMITH_API_KEY has to go for OIDC to
take effect.1 parent fe16f9b commit 6afc65a
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments