From 807e5805149e6f123bf857b652985c8d017a715f Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 15:34:35 -0400 Subject: [PATCH 1/8] Add release notes workflow --- .github/workflows/release-notes-update.yaml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release-notes-update.yaml diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml new file mode 100644 index 00000000..9ad0b2b3 --- /dev/null +++ b/.github/workflows/release-notes-update.yaml @@ -0,0 +1,26 @@ +# Copyright (c) 2025 Dell Inc., or its subsidiaries. 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 + +on: + workflow_call: + +jobs: + release-notes-update: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Clone io-tools/change-log + env: + GITHUB_TOKEN: ${{ secrets.INTERNAL_GITHUB_TOKEN }} + run: | + git clone https://eos2git.cec.lab.emc.com/io-tools/change-log.git + cd change-log + git checkout main + cd .. From 2bba05f47cd303aaa331f405c14e49a66161308a Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 15:50:01 -0400 Subject: [PATCH 2/8] test --- .github/workflows/release-notes-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index 9ad0b2b3..b7770aba 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -6,8 +6,9 @@ # # http://www.apache.org/licenses/LICENSE-2.0 + on: - workflow_call: + workflow_dispatch: jobs: release-notes-update: From becb72f8dde5f10bff3665824b641f5cb274a35b Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 16:26:40 -0400 Subject: [PATCH 3/8] test --- .github/workflows/release-notes-update.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index b7770aba..6edf2953 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -17,11 +17,16 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.24" + - name: Clone io-tools/change-log env: - GITHUB_TOKEN: ${{ secrets.INTERNAL_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} run: | - git clone https://eos2git.cec.lab.emc.com/io-tools/change-log.git + git clone https://github.com/falfaroc/change-log.git cd change-log - git checkout main - cd .. + + make build From b66422c64659ef32607046e04738a09f253c6a09 Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 16:29:25 -0400 Subject: [PATCH 4/8] test --- .github/workflows/release-notes-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index 6edf2953..7243c777 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -26,7 +26,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} run: | - git clone https://github.com/falfaroc/change-log.git + git clone https://${GITHUB_TOKEN}@github.com/falfaroc/change-log.git cd change-log make build From 1e673d5af1adda18adffc12f94fa95cec4c047ad Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 16:39:15 -0400 Subject: [PATCH 5/8] test --- .github/workflows/ci-test.yml | 10 +++++----- .github/workflows/release-notes-update.yaml | 8 ++++++++ .github/workflows/scanner-test.yml | 10 +++++----- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 44b6c25c..6620c550 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -2,11 +2,11 @@ name: code-sanitizer-test # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch -on: - push: - branches: [main] - pull_request: - branches: [main] +# on: +# push: +# branches: [main] +# pull_request: +# branches: [main] jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index 7243c777..f5ce23ae 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -26,7 +26,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} run: | + # Need to retrieve the next milestone. + MILESTONE=v1.14.0 + git clone https://${GITHUB_TOKEN}@github.com/falfaroc/change-log.git cd change-log make build + + sed -i "s/milestone: \(.*\)*/milestone: \"$MILESTONE\"/g" config.yaml + ./bin/change-log > changelog.md + + cat changelog.md diff --git a/.github/workflows/scanner-test.yml b/.github/workflows/scanner-test.yml index 2f5bf626..316ff053 100644 --- a/.github/workflows/scanner-test.yml +++ b/.github/workflows/scanner-test.yml @@ -1,11 +1,11 @@ # This workflow is for scanning this repo for malware name: malware-scanner -on: - push: - branches: [main] - pull_request: - branches: [main] +# on: +# push: +# branches: [main] +# pull_request: +# branches: [main] jobs: malware_security_scan: From 75c908a05e255374e73b66f4927f9fed784434ae Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Tue, 8 Apr 2025 16:40:48 -0400 Subject: [PATCH 6/8] test --- .github/workflows/ci-test.yml | 8 +++----- .github/workflows/release-notes-update.yaml | 2 +- .github/workflows/scanner-test.yml | 7 ++----- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 6620c550..02ab740b 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -2,11 +2,9 @@ name: code-sanitizer-test # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch -# on: -# push: -# branches: [main] -# pull_request: -# branches: [main] +on: + workflow_dispatch: + jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index f5ce23ae..061c063d 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -5,7 +5,7 @@ # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 - +name: Update CSM Release Notes on: workflow_dispatch: diff --git a/.github/workflows/scanner-test.yml b/.github/workflows/scanner-test.yml index 316ff053..efc98180 100644 --- a/.github/workflows/scanner-test.yml +++ b/.github/workflows/scanner-test.yml @@ -1,11 +1,8 @@ # This workflow is for scanning this repo for malware name: malware-scanner -# on: -# push: -# branches: [main] -# pull_request: -# branches: [main] +on: + workflow_dispatch: jobs: malware_security_scan: From 1114a1bd1e7c2d805259d5a4bcffb025550db3f4 Mon Sep 17 00:00:00 2001 From: Fernando Alfaro Campos Date: Fri, 2 May 2025 09:51:29 -0400 Subject: [PATCH 7/8] test --- .github/workflows/release-notes-update.yaml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/release-notes-update.yaml b/.github/workflows/release-notes-update.yaml index 061c063d..56fe132d 100644 --- a/.github/workflows/release-notes-update.yaml +++ b/.github/workflows/release-notes-update.yaml @@ -38,3 +38,28 @@ jobs: ./bin/change-log > changelog.md cat changelog.md + + # # Needed for signing commits using Github App tokens + # # See: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#commit-signing + # - name: Generate GitHub App Token + # uses: actions/create-github-app-token@v2.0.2 + # id: generate-token + # with: + # app-id: ${{ vars.CSM_RELEASE_APP_ID }} + # private-key: ${{ secrets.MY_GITHUB_TOKEN }} + + # Must enable "allow GitHub Actions to create pull requests" setting + # Author defaults to the user who triggered the workflow run + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + # token: ${{ steps.generate-token.outputs.token }} + branch: "release-notes-update" + commit-message: "Update Release Notes" + title: "Update Release Notes" + body: | + Generate the Release Note for the latest release. + + Auto-generated by [common-github-actions](https://github.com/dell/common-github-actions) + sign-commits: true + delete-branch: true From c3cdbfb0375b79e0209ecd5688b8ca1f694fce42 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 2 May 2025 13:52:56 +0000 Subject: [PATCH 8/8] Update Release Notes --- change-log | 1 + 1 file changed, 1 insertion(+) create mode 160000 change-log diff --git a/change-log b/change-log new file mode 160000 index 00000000..8808e889 --- /dev/null +++ b/change-log @@ -0,0 +1 @@ +Subproject commit 8808e88995c188fa5f81f290cfe97b3afe6c9ae6