@@ -27,31 +27,35 @@ jobs:
2727 timeout-minutes : 5
2828 steps :
2929 - name : Harden Runner
30- uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
30+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
3131 with :
3232 egress-policy : audit
3333
34- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+ - name : Checkout repository
35+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3536
3637 - name : Set up Go
37- uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
38+ uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
3839 with :
3940 go-version-file : go.mod
4041 check-latest : true
4142
4243 - name : Go tidy
43- run : go mod tidy
44+ run : go mod tidy
4445
4546 - name : Install go-licenses
4647 run : go install github.com/google/go-licenses@5348b744d0983d85713295ea08a20cca1654a45e # v1.6.0
4748
4849 - name : Generate TPIP Report
4950 run : |
50- go-licenses report . --ignore github.com/Open-CMSIS-Pack/generator-bridge --template ../configs/${{ env.report_name }}.template > ../${{ env.report_name }}
51+ go-licenses report . \
52+ --ignore github.com/Open-CMSIS-Pack/generator-bridge \
53+ --template ../configs/${{ env.report_name }}.template \
54+ > ../${{ env.report_name }}
5155 working-directory : ./cmd
5256
5357 - name : Archive tpip report
54- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
58+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5559 with :
5660 name : tpip-report
5761 path : ./${{ env.report_name }}
@@ -60,39 +64,42 @@ jobs:
6064 run : cat ${{ env.report_name }} >> $GITHUB_STEP_SUMMARY
6165
6266 - name : Check Licenses
63- run : go-licenses check . --ignore github.com/Open-CMSIS-Pack/generator-bridge --disallowed_types=forbidden,restricted
67+ run : |
68+ go-licenses check . \
69+ --ignore github.com/Open-CMSIS-Pack/generator-bridge \
70+ --disallowed_types=forbidden,restricted
6471 working-directory : ./cmd
6572
6673 commit-changes :
67- # Running this job only on specific event
68- # in order to have workaround for issue
69- # related to deletion of GH checks/status data
70- permissions :
71- contents : write # for peter-evans/create-pull-request to create branch
72- pull-requests : write # for peter-evans/create-pull-request to create a PR
7374 if : (github.event_name == 'schedule') || (github.event_name == 'workflow_dispatch')
7475 needs : [ check-licenses ]
7576 runs-on : ubuntu-latest
7677 timeout-minutes : 5
78+ permissions :
79+ contents : read
80+ pull-requests : read
81+
7782 steps :
7883 - name : Harden Runner
79- uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
84+ uses : step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
8085 with :
8186 egress-policy : audit
8287
83- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
88+ - name : Checkout repository
89+ uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8490 with :
8591 ref : ${{ github.event.pull_request.head.ref }}
8692 fetch-depth : 0
8793
8894 - name : Restore Changes
89- uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
95+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
9096 with :
9197 name : tpip-report
9298
9399 - name : Create Pull Request
94- uses : peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
100+ uses : peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
95101 with :
102+ token : ${{ secrets.GRASCI_WORKFLOW_UPDATE }}
96103 commit-message : Update TPIP report
97104 title : ' :robot: [TPIP] Automated report updates'
98105 body : |
0 commit comments