File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,22 @@ permissions:
1010 contents : read
1111
1212jobs :
13+ license-headers :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v7
17+ - name : Check license headers
18+ run : |
19+ missing=$(grep -rL "Licensed under the Elastic License 2.0" \
20+ --include="*.py" \
21+ --exclude-dir=".venv" --exclude-dir="dist" --exclude-dir="build" \
22+ .)
23+ if [ -n "$missing" ]; then
24+ echo "Files missing Elastic License 2.0 header:"
25+ echo "$missing"
26+ exit 1
27+ fi
28+
1329 pre-commit :
1430 runs-on : ubuntu-latest
1531 steps :
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
14
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
14
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
14
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
4+
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
4+
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
4+
Original file line number Diff line number Diff line change 1+ # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
2+ # or more contributor license agreements. Licensed under the Elastic License 2.0;
3+ # you may not use this file except in compliance with the Elastic License 2.0.
4+
You can’t perform that action at this time.
0 commit comments