-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
87 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Semgrep (Scheduled)" | ||
|
||
# This workflow will run after a push to the main branch and as a scheduled job. | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "30 0 1,15 * *" | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
semgrep: | ||
name: "Scan" | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: returntocorp/semgrep | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- run: semgrep ci | ||
env: | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,10 @@ name: "Snyk (Scheduled)" | |
|
||
on: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
schedule: | ||
- cron: "30 0 1,15 * *" | ||
|
||
permissions: {} | ||
|
||
|
@@ -14,7 +17,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
coverage: none | ||
|
@@ -26,7 +29,7 @@ jobs: | |
|
||
- run: composer install --no-progress | ||
|
||
- uses: snyk/actions/php@master | ||
- uses: snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # [email protected] | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
@@ -16,7 +17,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
coverage: pcov | ||
|
@@ -25,7 +26,7 @@ jobs: | |
|
||
- run: vendor/bin/pest --order-by random --fail-on-risky --stop-on-defect --coverage --parallel | ||
|
||
- uses: codecov/codecov-action@v3 | ||
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # [email protected] | ||
with: | ||
directory: ./coverage/ | ||
flags: unittests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
@@ -16,7 +17,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
@@ -16,10 +17,10 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
|
||
- run: composer install --no-progress | ||
|
||
# - run: vendor/bin/phpstan analyze --no-ansi --no-progress --debug | ||
- run: vendor/bin/phpstan analyze --no-ansi --no-progress --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
@@ -16,10 +17,10 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
|
||
- run: composer install --no-progress | ||
|
||
# - run: vendor/bin/psalm | ||
- run: vendor/bin/psalm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ on: | |
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main"] | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
|
@@ -16,7 +17,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Semgrep" | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Pull Request Changes"] | ||
types: | ||
- completed | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
wait: | ||
name: "Scan" | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: returntocorp/semgrep | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- run: semgrep ci | ||
env: | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@v2 | ||
- uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # [email protected] | ||
with: | ||
php-version: "8.1" | ||
coverage: none | ||
|
@@ -29,7 +29,7 @@ jobs: | |
|
||
- run: composer install --no-progress | ||
|
||
- uses: snyk/actions/php@master | ||
- uses: snyk/actions/php@b98d498629f1c368650224d6d212bf7dfa89e4bf # [email protected] | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |