Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copyright and secret scan #258

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 9 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
jobs:
copyright-check:
uses: hpe-actions/copyright/.github/workflows/copyright.yml@v2
with:
fix: true
11 changes: 11 additions & 0 deletions .github/workflows/copyright.yaml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions .github/workflows/secret-scanner.yml
Original file line number Diff line number Diff line change
@@ -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
Loading