Skip to content

Commit 2552144

Browse files
committed
chore: adjust git hook to push sbom
1 parent b68d1a7 commit 2552144

4 files changed

Lines changed: 18 additions & 17 deletions

File tree

.github/workflows/dtrack-trivy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Workflow for Depency Track and Trivy
2+
env:
3+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
24
on:
35
push:
46
paths:
@@ -11,7 +13,6 @@ on:
1113
- 'composer.json'
1214
- 'composer.lock'
1315
workflow_dispatch:
14-
1516
permissions:
1617
contents: write
1718
jobs:
@@ -49,7 +50,7 @@ jobs:
4950
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
5051
git add sbom.json
5152
git commit -am "sbom.json updated" --no-verify || exit 1
52-
git push --no-verify
53+
git push origin HEAD:${BRANCH_NAME} -f
5354
continue-on-error: false
5455

5556
- name: Push SBOM to Dependency Track

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
"require-dev": {
6262
"amphp/file": ">=3.2",
6363
"brainmaestro/composer-git-hooks": "dev-master",
64-
"friendsofphp/php-cs-fixer": "^3.82.2",
64+
"friendsofphp/php-cs-fixer": "^3.84.0",
6565
"pestphp/pest": "^3.8.2",
6666
"pestphp/pest-plugin-drift": "^3.0",
6767
"pestphp/pest-plugin-type-coverage": "^3.6",
6868
"phpmd/phpmd": "^2.15",
69-
"phpstan/phpstan": "^2.1.17",
69+
"phpstan/phpstan": "^2.1.18",
7070
"rector/swiss-knife": "^2.3.1",
7171
"symplify/easy-coding-standard": "^12.5.20"
7272
},

composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/phpmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ Issues detected: 76
137137

138138
Issues detected: 8
139139

140-
Mon Jul 14 12:31:54 PM CEST 2025
140+
Fri 18 Jul 2025 08:46:33 AM CEST

0 commit comments

Comments
 (0)