Skip to content

Conversation

@stanleegoodspeed
Copy link
Collaborator

@stanleegoodspeed stanleegoodspeed commented Aug 30, 2024

Description

The GH Actions do not need access to the general permission scope.

Motivation

https://datadoghq.atlassian.net/browse/VULN-8176

How to test

Test run of a workflow with all permissions disabled. It built and deployed the ads-java service as expected
https://github.com/DataDog/storedog/actions/runs/10635427517

Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions

@stanleegoodspeed stanleegoodspeed requested review from a team as code owners August 30, 2024 15:49
@stanleegoodspeed stanleegoodspeed changed the title Disable GH permissions Disable GH Action permissions Aug 30, 2024
Copy link
Collaborator

@arosenkranz arosenkranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@arosenkranz arosenkranz merged commit 7b83782 into main Aug 30, 2024
@arosenkranz arosenkranz deleted the ccole/gh-workflow-perms branch August 30, 2024 15:58
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.

3 participants