We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5afd291 commit 08f604dCopy full SHA for 08f604d
1 file changed
.github/workflows/global.yml
@@ -0,0 +1,34 @@
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
0 commit comments