File tree Expand file tree Collapse file tree 5 files changed +8
-9
lines changed
Expand file tree Collapse file tree 5 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 2222 runs-on : ubuntu-latest
2323 permissions :
2424 contents : read
25- actions : read
25+ actions : read # is needed by zizmorcore/zizmor-action
2626 pull-requests : write # is needed by oxsecurity/megalinter and reviewdog/action-suggester to post PR comments
2727 security-events : write # is needed by oxsecurity/megalinter for uploading sarif files
2828 steps :
Original file line number Diff line number Diff line change @@ -124,10 +124,9 @@ jobs:
124124 name : 📄 Upload Documents
125125 runs-on : ubuntu-latest
126126 permissions :
127- # `contents: write` is needed to modify a release.
128127 # Please note that this is an overly broad scope, but GitHub does not
129128 # currently provide a more fine-grained permission for release modification.
130- contents : write
129+ contents : write # is needed to modify a release
131130 needs : [build-push-test]
132131 steps :
133132 - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
Original file line number Diff line number Diff line change 1919 # set-up correctly.
2020 container : ghcr.io/philips-software/amp-devcontainer-${{ matrix.flavor }}:edge
2121 permissions :
22- contents : write
23- pull-requests : write
22+ contents : write # is needed by peter-evans/create-pull-request to create branches and push commits
23+ pull-requests : write # is needed by peter-evans/create-pull-request to create a PR
2424 steps :
2525 - uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2626 with :
5353 flavor : ["cpp", "rust"]
5454 file : ["devcontainer-metadata.json", "devcontainer.json"]
5555 permissions :
56- contents : write
57- pull-requests : write
56+ contents : write # is needed by peter-evans/create-pull-request to create branches and push commits
57+ pull-requests : write # is needed by peter-evans/create-pull-request to create a PR
5858 steps :
5959 - uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
6060 with :
Original file line number Diff line number Diff line change 6565 needs : sanitize-image-name
6666 permissions :
6767 contents : read
68- packages : write
68+ packages : write # is needed by docker/build-push-action to push images to GitHub Container Registry
6969 steps :
7070 - uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
7171 with :
Original file line number Diff line number Diff line change 2424 runs-on : ${{ fromJson(inputs.runner-labels) }}
2525 permissions :
2626 contents : read
27- pull-requests : write
27+ pull-requests : write # is needed by actions/dependency-review-action to write PR summaries
2828 steps :
2929 - uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
3030 with :
You can’t perform that action at this time.
0 commit comments