Skip to content

Commit 87be328

Browse files
Merge pull request #267128 from laragoldstein13/docs-editor/github-action-1708717497
Update github-action.md
2 parents f96d772 + 270cbc8 commit 87be328

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

articles/defender-for-cloud/github-action.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Microsoft Security DevOps uses the following Open Source tools:
3131

3232
- Open the [Microsoft Security DevOps GitHub action](https://github.com/marketplace/actions/security-devops-action) in a new window.
3333

34-
- Ensure that [Workflow permissions are set to Read and Write](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository) on the GitHub repository.
34+
- Ensure that [Workflow permissions are set to Read and Write](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository) on the GitHub repository. This includes setting "id-token: write" permissions in the GitHub Workflow for federation with Defender for Cloud.
3535

3636
## Configure the Microsoft Security DevOps GitHub action
3737

@@ -71,7 +71,11 @@ Microsoft Security DevOps uses the following Open Source tools:
7171
# MSDO runs on windows-latest.
7272
# ubuntu-latest also supported
7373
runs-on: windows-latest
74-
74+
75+
permissions:
76+
contents: read
77+
id-token: write
78+
7579
steps:
7680

7781
# Checkout your code repository to scan

0 commit comments

Comments
 (0)