From 0bcf3dd3ef2be0a84b7a0c21cfb9232e6a53d038 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 10:31:20 +0100 Subject: [PATCH 1/5] Create main.yml for CI --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9738f77 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +on: ["push", "pull_request"] +name: Main Workflow + +jobs: + run: + name: Run + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: [ 7.3, 7.4, 8.0, 8.1 ] + + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + tools: composer:v1 + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: TruffleHog OSS + uses: trufflesecurity/trufflehog@v3.17.0 From 3590454911856c6e0a76521778d4733df7fecbea Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 10:37:22 +0100 Subject: [PATCH 2/5] Code formatting --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9738f77..80ff338 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: tools: composer:v1 - name: Validate composer.json and composer.lock - run: composer validate --strict + run: composer validate --strict - name: TruffleHog OSS uses: trufflesecurity/trufflehog@v3.17.0 From 04a072da4372369b0320af084f1be3cfe0f05511 Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 10:51:18 +0100 Subject: [PATCH 3/5] Remove composer validation --- .github/workflows/main.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80ff338..2a292c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,8 +17,5 @@ jobs: php-version: ${{ matrix.php-version }} tools: composer:v1 - - name: Validate composer.json and composer.lock - run: composer validate --strict - - name: TruffleHog OSS uses: trufflesecurity/trufflehog@v3.17.0 From 3ade76d670437ec102971d0fa2344ff90079a2fb Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 10:58:26 +0100 Subject: [PATCH 4/5] Update TruffleHog --- .github/workflows/main.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a292c1..4675602 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,5 +17,15 @@ jobs: php-version: ${{ matrix.php-version }} tools: composer:v1 + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.17.0 + uses: trufflesecurity/trufflehog@main + with: + path: ./ + base: ${{ github.event.repository.default_branch }} + head: HEAD + extra_args: --debug --only-verified From 61b0457a0a7ea35f2b1c74314db4b54d63c6b3eb Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Wed, 16 Nov 2022 11:00:19 +0100 Subject: [PATCH 5/5] Change PHP support matrix --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4675602..9d6b743 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - php-version: [ 7.3, 7.4, 8.0, 8.1 ] + php-version: [ 7.4, 8.0, 8.1 ] steps: - name: Setup PHP