From e4e4230c47ba712e76d793c891e41d674457d4c9 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:14:03 +0000 Subject: [PATCH 1/8] Create reusable-license.yml --- .github/workflows/reusable-license.yml | 82 ++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .github/workflows/reusable-license.yml diff --git a/.github/workflows/reusable-license.yml b/.github/workflows/reusable-license.yml new file mode 100644 index 0000000..a3a79de --- /dev/null +++ b/.github/workflows/reusable-license.yml @@ -0,0 +1,82 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + +name: Stale + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + types: [ opened, synchronize, reopened ] + workflow_call: + +permissions: + contents: read + +jobs: + header: + runs-on: ubuntu-latest + name: Check License Headers + steps: + - name: Harden Runner + uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0 + with: + egress-policy: block + disable-telemetry: true + allowed-endpoints: > + github.com:443 + api.github.com:443 + + - name: Check out code base + if: github.event_name == 'push' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Check out code base + if: github.event_name == 'pull_request' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} + + - name: Check License Header + uses: apache/skywalking-eyes/header@438e4ea5682269933ea2c8b5608662e52af26959 # v0.4.0 + + dependency: + runs-on: ubuntu-latest + name: "Check Dependencies' License" + steps: + - name: Harden Runner + uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0 + with: + egress-policy: block + disable-telemetry: true + allowed-endpoints: > + github.com:443 + api.github.com:443 + + - name: Check out code base + if: github.event_name == 'push' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Check out code base + if: github.event_name == 'pull_request' + uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + fetch-depth: 0 + persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} + + - name: Check License Header + uses: apache/skywalking-eyes/dependency@438e4ea5682269933ea2c8b5608662e52af26959 # v0.4.0 + From ed7a406503e202d50e52e917461e7ed07fbb4515 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:20:27 +0000 Subject: [PATCH 2/8] Update workflow name --- .github/workflows/reusable-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-license.yml b/.github/workflows/reusable-license.yml index a3a79de..3861c5c 100644 --- a/.github/workflows/reusable-license.yml +++ b/.github/workflows/reusable-license.yml @@ -2,7 +2,7 @@ # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. -name: Stale +name: License on: push: From be5b9ec9f78626ad924b1ce889b3a51a61556e36 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:25:32 +0000 Subject: [PATCH 3/8] Create .licenserc.yaml --- .licenserc.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .licenserc.yaml diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 0000000..c01f8bd --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,22 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the GNU GPL v3 +# license that can be found in the LICENSE file. +# +header: + license: + spdx-id: MIT + copyright-owner: Wayback Archiver + content: | + Copyright 2020 Wayback Archiver. All rights reserved. + Use of this source code is governed by the MIT license + that can be found in the LICENSE file. + + paths-ignore: + - '.github/ISSUE_TEMPLATE' + - '.github/PULL_REQUEST_TEMPLATE' + - '.gitattributes' + - '.semgrepignore' + - '**/*.md' + - 'LICENSE' + + comment: on-failure From 944d6646b29cba65b566431f65e3514d5cc76c5b Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:26:04 +0000 Subject: [PATCH 4/8] Update .licenserc.yaml --- .licenserc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.licenserc.yaml b/.licenserc.yaml index c01f8bd..1052335 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -18,5 +18,6 @@ header: - '.semgrepignore' - '**/*.md' - 'LICENSE' + - 'CODEOWNERS' comment: on-failure From a78b2d617463eea98ff9b5601b25a89a475c731e Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:27:20 +0000 Subject: [PATCH 5/8] Update step name --- .github/workflows/reusable-license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-license.yml b/.github/workflows/reusable-license.yml index 3861c5c..b1e00a1 100644 --- a/.github/workflows/reusable-license.yml +++ b/.github/workflows/reusable-license.yml @@ -77,6 +77,6 @@ jobs: persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} - - name: Check License Header + - name: "Check Dependencies' License" uses: apache/skywalking-eyes/dependency@438e4ea5682269933ea2c8b5608662e52af26959 # v0.4.0 From a528053a58dc4efe94c94ace06f5c8291babafcd Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:29:19 +0000 Subject: [PATCH 6/8] Remove stale.yml --- .github/workflows/stale.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 5553d1e..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Stale - -on: - schedule: - - cron: "0 3 * * 6" - -jobs: - stale: - name: Stale - runs-on: ubuntu-latest - steps: - - name: Mark stale issues and pull requests - uses: actions/stale@v3 - with: - repo-token: ${{ github.token }} - stale-issue-message: "This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days" - stale-pr-message: 'It has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days' - days-before-stale: 120 - days-before-close: 5 From d0b3ee0ac6eef7bef5d91f81cb69ba602a565dc5 Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:32:06 +0000 Subject: [PATCH 7/8] Fix license header --- .github/config.yml | 4 ++++ .github/dependabot.yml | 4 ++++ .github/linters/.golangci.yml | 4 ++++ .github/linters/.hadolint.yaml | 4 ++++ .github/linters/.markdown-lint.yml | 6 +++--- .licenserc.yaml | 6 +++--- 6 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/config.yml b/.github/config.yml index 82f5c54..b27bc69 100644 --- a/.github/config.yml +++ b/.github/config.yml @@ -1,3 +1,7 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + # Configuration for welcome - https://github.com/behaviorbot/welcome # Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 677bc27..e5633c9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,7 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: diff --git a/.github/linters/.golangci.yml b/.github/linters/.golangci.yml index f53ce38..6afc608 100644 --- a/.github/linters/.golangci.yml +++ b/.github/linters/.golangci.yml @@ -1,3 +1,7 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + --- ######################### ######################### diff --git a/.github/linters/.hadolint.yaml b/.github/linters/.hadolint.yaml index b408c6b..f201b0d 100644 --- a/.github/linters/.hadolint.yaml +++ b/.github/linters/.hadolint.yaml @@ -1,3 +1,7 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + --- ########################## ## Hadolint config file ## diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 37004c4..6a3b9d4 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -1,7 +1,7 @@ # Copyright 2020 Wayback Archiver. All rights reserved. -# Use of this source code is governed by the GNU GPL v3 -# license that can be found in the LICENSE file. -# +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + --- ########################### ########################### diff --git a/.licenserc.yaml b/.licenserc.yaml index 1052335..8b7c02d 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -1,7 +1,7 @@ # Copyright 2020 Wayback Archiver. All rights reserved. -# Use of this source code is governed by the GNU GPL v3 -# license that can be found in the LICENSE file. -# +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + header: license: spdx-id: MIT From 7b30c88c526eda832f51435296ddfd759e4c9d4d Mon Sep 17 00:00:00 2001 From: Wayback Archiver <66856220+waybackarchiver@users.noreply.github.com> Date: Mon, 7 Nov 2022 03:34:17 +0000 Subject: [PATCH 8/8] Fix license header --- .github/workflows/reviewdog.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 61ca991..da7438e 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,3 +1,7 @@ +# Copyright 2020 Wayback Archiver. All rights reserved. +# Use of this source code is governed by the MIT license +# that can be found in the LICENSE file. + name: ReviewDog on: