From c2f930fa5fe0e8585921f39415865894df9e48a4 Mon Sep 17 00:00:00 2001 From: Vyacheslav Rybalchenko Date: Tue, 28 May 2024 15:05:43 +0300 Subject: [PATCH 1/3] feat(objectionary#3038): add trufflehog-oss workflow --- .github/workflows/trufflehog-oss.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trufflehog-oss.yml diff --git a/.github/workflows/trufflehog-oss.yml b/.github/workflows/trufflehog-oss.yml new file mode 100644 index 0000000000..9a2c512363 --- /dev/null +++ b/.github/workflows/trufflehog-oss.yml @@ -0,0 +1,22 @@ +--- + +name: trufflehog-oss +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Secret Scanning + uses: trufflesecurity/trufflehog@main + with: + extra_args: --only-verified From 93ccc9f20d89926dbaf7d0ab16df8be92f7c5d1c Mon Sep 17 00:00:00 2001 From: Vyacheslav Rybalchenko Date: Tue, 28 May 2024 15:08:59 +0300 Subject: [PATCH 2/3] fix: add license in trufflehog-oss.yml --- .github/workflows/trufflehog-oss.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/trufflehog-oss.yml b/.github/workflows/trufflehog-oss.yml index 9a2c512363..6ad952c293 100644 --- a/.github/workflows/trufflehog-oss.yml +++ b/.github/workflows/trufflehog-oss.yml @@ -1,3 +1,24 @@ +# The MIT License (MIT) +# +# Copyright (c) 2016-2024 Objectionary.com +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. --- name: trufflehog-oss From e69d3eaabb823146646a61a3adc8b5b9787e34ad Mon Sep 17 00:00:00 2001 From: Vyacheslav Rybalchenko Date: Wed, 29 May 2024 00:16:39 +0300 Subject: [PATCH 3/3] chore: change job name and ubuntu version --- .github/workflows/trufflehog-oss.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trufflehog-oss.yml b/.github/workflows/trufflehog-oss.yml index 6ad952c293..c653c56010 100644 --- a/.github/workflows/trufflehog-oss.yml +++ b/.github/workflows/trufflehog-oss.yml @@ -30,8 +30,8 @@ name: trufflehog-oss branches: - master jobs: - test: - runs-on: ubuntu-latest + trufflehog: + runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v4