+# 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
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
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