Skip to content

Update github-actions (maint) #8858

Update github-actions (maint)

Update github-actions (maint) #8858

## %CopyrightBegin%
##
## SPDX-License-Identifier: Apache-2.0
##
## Copyright Ericsson AB 2024-2026. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## %CopyrightEnd%
## This workflow will scan pull requests and pushed for files that do not
## have the proper license.
name: Check license header
on:
pull_request:
push:
permissions:
contents: read
pull-requests: read
jobs:
run-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: '0'
persist-credentials: false
- uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1
with:
otp-version: '27'
- name: License Compliance Check all files
run: ./scripts/license-header.es ci
- name: Check that copyright update works as it should
run: |
./scripts/license-header.es update
./scripts/license-header.es ci