Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5f2d624
change add to cart behaviour
JonatanStorlund Oct 27, 2024
f8cb578
add woo-ajax-add-to-cart
JonatanStorlund Nov 1, 2024
a064702
move genero woocommerce extensions into plugin
JonatanStorlund Nov 1, 2024
39e77b0
WIP
JonatanStorlund Mar 24, 2025
ca638ce
composer update
oxyc Jun 13, 2025
94202d1
Update packages, acorn, csp, sage-svg
oxyc Jun 13, 2025
80c1072
Move config files to root of project
oxyc Jun 13, 2025
2f7ebc7
Race condition fixes in bud build process and support importing svgs …
oxyc Jun 13, 2025
b4c0626
Replace redirection plugin with safe-redirect-manager
oxyc Jun 13, 2025
3e65841
Fix sage incompatibility with gravityform merge tags
oxyc Jun 13, 2025
ceec391
Fix post-archive integration causing bug with Yoast settings screen
oxyc Jun 13, 2025
0a8691c
Move acorn bootstrap to mu-plugin
oxyc Jun 13, 2025
495d5e4
Remove unnecessary block patter service provider (use patterns/ theme…
oxyc Jun 13, 2025
1ad06d0
Fix cache bursting of block assets in editor
oxyc Jun 13, 2025
ed2fdfd
Quick fix with latest woocommerce throwing error
oxyc Jun 13, 2025
064d181
Use query block namespaces
oxyc Jun 13, 2025
906b606
Autoplay media-text videos
oxyc Jun 13, 2025
2007e1d
Add support for custom site logo
oxyc Jun 13, 2025
a4d3ce1
Optimize media-text image rendering
oxyc Jun 13, 2025
1ceb0c7
Fix editor styling in latest wordpress
oxyc Jun 13, 2025
4710c08
Convert page-title and breadcrumb block to native blocks
oxyc Jun 13, 2025
6b82ec3
Add not-found template part
oxyc Jun 13, 2025
316594d
squash breadcrumb + pagetitle
oxyc Jun 13, 2025
f4781ed
Fix grid group styling in editor
oxyc Jun 13, 2025
826c20e
Add example pattern categories
oxyc Jun 13, 2025
c997b23
remove genero-woocommerce dist folder
oxyc Jun 13, 2025
b8ebb5a
ddev config update
oxyc Jun 13, 2025
79597a1
Move woo styles and blocks out of theme and into plugin
oxyc Jun 13, 2025
0064d07
pint fix
oxyc Jun 13, 2025
249abfe
Remove unused github actions
oxyc Jun 17, 2025
29c27e1
Remove GH action multisite parameter and let repos set the default in…
oxyc Jun 17, 2025
e92e632
Update vulnerability scanner workflow
oxyc Jun 17, 2025
270d25f
Remove reference to lighthouse gh action
oxyc Jun 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .ddev/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
/.homeadditions
/.importdb*
/.sshimageBuild
/.venv
/.webimageBuild
/apache/apache-site.conf
/commands/.gitattributes
/config.local.y*ml
/config.*.local.y*ml
/db_snapshots
/mutagen/mutagen.yml
/mutagen/.start-synced
Expand All @@ -25,7 +25,6 @@
/providers/platform.yaml
/providers/upsun.yaml
/sequelpro.spf
/settings/settings.ddev.py
/traefik/config/gdsbedrock.yaml
/traefik/certs/gdsbedrock.crt
/traefik/certs/gdsbedrock.key
Expand Down
26 changes: 21 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80

[*.md]
trim_trailing_whitespace = false

[*.php]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
[*.blade.php]
indent_size = 2

[resources/views/**.php]
indent_size = 2

[index.php]
indent_size = 2

[resources/blocks/**.php]
indent_size = 4

[resources/blocks/**.blade.php]
indent_size = 2
File renamed without changes.
3 changes: 0 additions & 3 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ jobs:
uses: ./.github/workflows/e2e.yml
with:
url: 'https://gdsbedrock.kinsta.cloud'
lighthouse:
needs: deploy
uses: ./.github/workflows/lighthouse.yml
34 changes: 0 additions & 34 deletions .github/workflows/lighthouse.yml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/malware-scan.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:

- name: Install WordPress
uses: ./.github/actions/install-wordpress
with:
multisite: 'false'

- name: Optimize acorn
run: ./vendor/bin/wp acorn optimize
Expand Down
108 changes: 68 additions & 40 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Vulnerability Scan
on:
schedule:
- cron: '5 4 * * *'
- cron: "5 4 * * *"
workflow_dispatch:

env:
NPM_FONTAWESOME_AUTH_TOKEN: ${{ secrets.NPM_FONTAWESOME_AUTH_TOKEN }}
PACKAGIST_GITHUB_TOKEN: ${{ secrets.PACKAGIST_GITHUB_TOKEN }}
MICROSOFT_TEAMS_FAUCET_WEBHOOK: ${{ secrets.MICROSOFT_TEAMS_FAUCET_WEBHOOK }}

jobs:
scan:
name: Vulnerability Scan
build_deploy:
name: Scan
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand All @@ -15,8 +20,8 @@ jobs:
- name: Setup project
uses: ./.github/actions/setup
with:
npm_fontawesome_auth_token: ${{ secrets.NPM_FONTAWESOME_AUTH_TOKEN }}
packagist_github_token: ${{ secrets.PACKAGIST_GITHUB_TOKEN }}
npm_fontawesome_auth_token: ${{ env.NPM_FONTAWESOME_AUTH_TOKEN }}
packagist_github_token: ${{ env.PACKAGIST_GITHUB_TOKEN }}

- name: Install development packages and build assets
run: composer install:development
Expand All @@ -25,42 +30,65 @@ jobs:
uses: ./.github/actions/install-wordpress

- name: Run vulnerability scan
run: ./vendor/bin/wp vuln status --nagios
id: scan
run: |
./vendor/bin/wp vuln status | grep '/10' \
| grep -v 'Not fixed' \
| tee /tmp/vulnerabilities.txt

- name: Show vulnerabilties
if: failure()
run: ./vendor/bin/wp vuln status
if [ -s /tmp/vulnerabilities.txt ]; then
formatted_plugins=$(awk '{print $1 " (" $NF ")" }' /tmp/vulnerabilities.txt | paste -sd ", " - | sed 's/,/, /g')
echo "formatted_plugins=$formatted_plugins" >> $GITHUB_OUTPUT
exit 1
else
echo "No vulnerabilities found"
exit 0
fi

- name: Microsoft Teams Notification
uses: skitionek/notify-microsoft-teams@master
if: failure()
with:
webhook_url: ${{ secrets.MICROSOFT_TEAMS_FAUCET_WEBHOOK }}
raw: >-
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "Vulnerability scan failed: ${{ github.event.repository.name }}",
"sections": [{
"activityTitle": "Vulnerability scan failed: ${{ github.event.repository.name }}",
"activitySubtitle": "Potential vulnerable plugin version detected by Wordfence on ${{ github.event.repository.name }} site",
"facts": [],
"markdown": true
}],
"potentialAction": [{
"@type": "OpenUri",
"name": "Repository",
"targets": [{
"os": "default",
"uri": "${{ github.server_url }}/${{ github.repository }}"
}]
}, {
"@type": "OpenUri",
"name": "Job details",
"targets": [{
"os": "default",
"uri": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}]
}]
}
run: |
curl -H 'Content-Type: application/json' -d '{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"text": "⚠️ Vulnerability scan failed: ${{ github.event.repository.name }}",
"wrap": true
},
{
"type": "TextBlock",
"size": "Small",
"text": "${{ steps.scan.outputs.formatted_plugins }}",
"wrap": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.OpenUrl",
"title": "Repository",
"url": "${{ github.server_url }}/${{ github.repository }}"
},
{
"type": "Action.OpenUrl",
"title": "Job details",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
],
"horizontalAlignment": "left"
}
]
}
}
]
}' "${{ env.MICROSOFT_TEAMS_FAUCET_WEBHOOK }}"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# Application
web/app/plugins/*
!web/app/plugins/genero-woocommerce
!web/app/plugins/.gitkeep
web/app/mu-plugins/*/
web/app/languages/*
Expand Down Expand Up @@ -35,6 +36,7 @@ auth.json
# Node Package Manager
node_modules
npm-debug.log
yarn-error.log

# Vagrant
.vagrant
Expand All @@ -60,3 +62,6 @@ wp-cli.local.yml
.phpunit.result.cache
screenshot.jpg
test-results

# Theme
web/app/themes/*/public
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
web/app/acf-json
web/app/cache
web/app/languages
web/app/mu-plugins/*/*
web/app/plugins
web/app/uploads
web/wp
**/vendor
Loading