Skip to content

Commit

Permalink
fix: set token permission as readonly (#1913)
Browse files Browse the repository at this point in the history
## Proposed change

<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that is required for this change. -->

## Related issues

- 🐛 Fixes #(issue)
- 🚀 Feature #(issue)

<!-- Please make sure to follow the contributing guidelines on
https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->
  • Loading branch information
cpaulve-1A authored Jun 21, 2024
2 parents 42fed3c + 1384249 commit 9c161cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/clean-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ on:
branches:
- '**'

permissions:
contents: read
permissions: read-all

jobs:
clean-cache:
runs-on: ubuntu-latest
permissions:
# Needed to delete cache from action
actions: write
contents: read
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Clean Branch Cache
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/tests-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
types:
- completed

permissions: read-all

jobs:
publish-ut-reports:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
# Required to publish Unit Test Report to the pipelne execution result
# Required to publish Unit Test Report to the pipeline execution result
checks: write
steps:
- uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
Expand All @@ -25,9 +25,7 @@ jobs:
publish-it-reports:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
# Required to publish Integration Test Report to the pipelne execution result
# Required to publish Integration Test Report to the pipeline execution result
checks: write
steps:
- uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
Expand Down

0 comments on commit 9c161cc

Please sign in to comment.