diff --git a/.github/actions/run-tests-setup/action.yml b/.github/actions/run-tests-setup/action.yml index 7d0460751..413f3d50a 100644 --- a/.github/actions/run-tests-setup/action.yml +++ b/.github/actions/run-tests-setup/action.yml @@ -1,11 +1,6 @@ name: "Run tests (setup)" description: "Sets up the PR comment for tests" -inputs: - GITHUB_TOKEN: - description: "The GitHub token to use for authentication" - required: true - runs: using: "composite" @@ -19,8 +14,8 @@ runs: - name: Begin PR comment uses: marocchino/sticky-pull-request-comment@v2 + if: github.event.pull_request.head.repo.full_name == github.repository with: - GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} header: tests recreate: true message: | @@ -30,8 +25,8 @@ runs: # Neccesary since the first comment has an annoying comment. - name: Append table header uses: marocchino/sticky-pull-request-comment@v2 + if: github.event.pull_request.head.repo.full_name == github.repository with: - GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} header: tests append: true message: | diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index b3b0bf539..a749c52b1 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -2,10 +2,6 @@ name: "Run tests" description: "Runs both unit tests and integration tests and appends to a PR comment" inputs: - GITHUB_TOKEN: - description: "The GitHub token to use for authentication" - required: true - job: description: "The job name to append to the PR comment" default: "unknown" @@ -51,8 +47,8 @@ runs: - name: Append to PR comment uses: marocchino/sticky-pull-request-comment@v2 + if: github.event.pull_request.head.repo.full_name == github.repository with: - GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} header: tests append: true message: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 489ba3b25..14d5ee122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ on: release: types: [published] schedule: - - cron: "0 5 * * *" + - cron: "0 5 * * *" # 5am UTC env: GIT_SHA: ${{ github.sha }} @@ -43,8 +43,6 @@ jobs: uses: actions/checkout@v4 - uses: ./.github/actions/run-tests-setup - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows: name: ${{ matrix.target.name }} @@ -96,7 +94,6 @@ jobs: uses: ./.github/actions/run-tests timeout-minutes: 2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} job: ${{ matrix.target.name }} - name: Package @@ -171,7 +168,6 @@ jobs: uses: ./.github/actions/run-tests timeout-minutes: 2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} job: ${{ matrix.target.name }} - name: Package @@ -288,7 +284,6 @@ jobs: uses: ./.github/actions/run-tests timeout-minutes: 2 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} job: linux-${{ matrix.distro.name }} - name: Package diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml index 76d13e5f2..212631bd1 100644 --- a/.github/workflows/sonarcloud-analysis.yml +++ b/.github/workflows/sonarcloud-analysis.yml @@ -111,5 +111,4 @@ jobs: -Dsonar.cfamily.threads=${{ env.CPU_CORE_COUNT }} \ -Dsonar.python.version=3.10 env: - SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/valgrind-analysis.yml b/.github/workflows/valgrind-analysis.yml index 54387f079..8a61e7b34 100644 --- a/.github/workflows/valgrind-analysis.yml +++ b/.github/workflows/valgrind-analysis.yml @@ -56,8 +56,8 @@ jobs: - name: Append to PR comment uses: marocchino/sticky-pull-request-comment@v2 + if: github.event.pull_request.head.repo.full_name == github.repository with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} recreate: true header: valgrind message: | diff --git a/ChangeLog b/ChangeLog index 59c54cc87..b126f0da0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +# 1.16.0 + +Enhancements: + +- #7448 Only add PR comments for internal PR + # 1.15.0 Enhancements: