Skip to content

Fix NPE in sanitizeMetricName when unit or aggregationTemporality is … #596

Fix NPE in sanitizeMetricName when unit or aggregationTemporality is …

Fix NPE in sanitizeMetricName when unit or aggregationTemporality is … #596

#
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
# Performs a license header check on new files.
# Results are uploaded as an artifact for the comment workflow.
name: License Header Check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
license-header-check:
runs-on: ubuntu-latest
name: Check License Headers on New Files
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Run License Header Check
id: license-check
run: |
python .github/scripts/get-new-files.py | python .github/scripts/check-license-headers.py
- name: Save PR number
if: always()
run: echo "${{ github.event.pull_request.number }}" > pr_number.txt
- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: license-check-results
path: |
pr_number.txt
violations.txt