From eecf2fd68ec0f0ac5d9417a3afdfccb979c4a355 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Fri, 20 Sep 2024 16:53:07 +0530 Subject: [PATCH 1/2] Add copyright and secret scan --- .github/workflows/copyright.yaml | 11 +++++++++++ .github/workflows/secret-scanner.yml | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/copyright.yaml create mode 100644 .github/workflows/secret-scanner.yml diff --git a/.github/workflows/copyright.yaml b/.github/workflows/copyright.yaml new file mode 100644 index 00000000..6f09a85e --- /dev/null +++ b/.github/workflows/copyright.yaml @@ -0,0 +1,11 @@ +# (c) Copyright 2024 Hewlett Packard Enterprise Development LP +name: Copyright check + +on: # yamllint disable-line rule:truthy + pull_request: + +jobs: + copyright-check: + uses: hpe-actions/copyright/.github/workflows/copyright.yml@v2 + with: + fix: true \ No newline at end of file diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml new file mode 100644 index 00000000..ddabbcc6 --- /dev/null +++ b/.github/workflows/secret-scanner.yml @@ -0,0 +1,14 @@ +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +name: Secrets Scanner + +on: + pull_request: + push: + branches: + - main + - master + +jobs: + secrets-scanner: + uses: hpe-actions/secrets-scanner/.github/workflows/secrets-scanner.yml@v2 \ No newline at end of file From 01c3f4afcad14db4c05c48eaf2169a93674899b2 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Fri, 20 Sep 2024 16:54:47 +0530 Subject: [PATCH 2/2] test copywrite --- .github/workflows/ci.yml | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 048aef14..6f09a85e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,30 +1,11 @@ -name: CI Lint Check +# (c) Copyright 2024 Hewlett Packard Enterprise Development LP +name: Copyright check -on: [pull_request] -jobs: - - ci: - runs-on: ubuntu-20.04 - strategy: - matrix: - go: [ '1.21' ] - steps: - - name: Checkout workspace - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.21' - - - name: Install necessary tools - run: make tools +on: # yamllint disable-line rule:truthy + pull_request: - - name: Run unit tests - run: make unit-test - - - name: Build the code - run: make build - - - name: Validate lint - run: make lint \ No newline at end of file +jobs: + copyright-check: + uses: hpe-actions/copyright/.github/workflows/copyright.yml@v2 + with: + fix: true \ No newline at end of file