Skip to content

Commit 13318ea

Browse files
tcx4c70Peng Liang
andauthored
Suppress DefaultAzureCredential CodeQL (#23)
* Suppress DefaultAzureCredential CodeQL * fix: name of GitHub Actions * Update dist Signed-off-by: Peng Liang <pengliang@microsoft.com> --------- Signed-off-by: Peng Liang <pengliang@microsoft.com> Co-authored-by: Peng Liang <pengliang@microsoft.com>
1 parent 2b164d8 commit 13318ea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/feature-flag-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const getHeaders = async (appConfigEndpoint: string) => {
8080
}
8181

8282
const getToken = async (appConfigEndpoint: string) => {
83-
const credential = new DefaultAzureCredential()
83+
const credential = new DefaultAzureCredential() // CodeQL [SM05138] GitHub Actions will run in a clean environment each time, no one can inject malicious credentials.
8484
const token = await credential.getToken(`${appConfigEndpoint}/.default`)
8585
return token.token
8686
}

0 commit comments

Comments
 (0)