File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : global
2+ on :
3+ workflow_dispatch :
4+ pull_request :
5+ paths :
6+ - ' .github/workflows/global.yml'
7+ - ' .pre-commit-config.yaml'
8+ - ' scripts/check_copyright_notice.py'
9+ - ' **/*.go'
10+ - ' !**/docs/**/*'
11+ - ' !**/*.md'
12+
13+ # Declare default permissions as read only.
14+ permissions : read-all
15+
16+ jobs :
17+ copyright :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Harden Runner
21+ uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
22+ with :
23+ egress-policy : audit
24+
25+ - name : Checkout devtools
26+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
28+ - name : Check copyright notice
29+ run : |
30+ pip install \
31+ pre-commit \
32+ python-magic==0.4.18 \
33+ comment-parser>=1.2.3
34+ pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments