diff --git a/.github/workflows/check-news-changes.yml b/.github/workflows/check-news-changes.yml index a4bb905fa1..7901b021f3 100644 --- a/.github/workflows/check-news-changes.yml +++ b/.github/workflows/check-news-changes.yml @@ -1,3 +1,10 @@ +# Copyright 2026 The OpenSSL Project Authors. All Rights Reserved. +# +# Licensed under the Apache License 2.0 (the "License"). You may not use +# this file except in compliance with the License. You can obtain a copy +# in the file LICENSE in the source distribution or at +# https://www.openssl.org/source/license.html + name: "Scan to check for NEWS/CHANGES suggestions" on: pull_request @@ -9,10 +16,10 @@ jobs: scan_for_news_changes: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 with: persist-credentials: false - fetch-depth: 2 + fetch-depth: 0 - name: "Check if we already have a NEWS/CHANGES entry" run: | git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > ./names.txt @@ -42,7 +49,7 @@ jobs: if: ${{ env.FOUND_NEWS_CHANGES_ADDITION == 'no' }} run: | set +e - grep -q "include\/crypto" ./names.txt + grep -q "include\/openssl" ./names.txt if [ $? -eq 0 ]; then echo "Changes in this PR may impact public APIS's" echo "NEED_NEWS_CHANGES=yes" >> $GITHUB_ENV