Skip to content

Commit

Permalink
Fix workflows RBAC (#249)
Browse files Browse the repository at this point in the history
* fix workflows RBAC

* Update .github/workflows/datadog-static-analysis.yml

Co-authored-by: Edouard Schweisguth <edouard.schweisguth@datadoghq.com>

---------

Co-authored-by: Edouard Schweisguth <edouard.schweisguth@datadoghq.com>
  • Loading branch information
jt-dd and edznux-dd authored Aug 28, 2024
1 parent 7341940 commit fda64c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/datadog-static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

permissions:
contents: write
contents: write # write permission is needed to get access to the DD_API_KEY secret - https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#accessing-your-secrets

jobs:
static-analysis:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
pull_request:

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
system-test:
runs-on:
Expand Down

0 comments on commit fda64c8

Please sign in to comment.