Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions magento-integration-tests/7.0/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ inputs:
magento_post_install_script:
description: 'Relative path to an optional script after Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:7.0-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/7.1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ inputs:
magento_post_install_script:
description: 'Relative path to an optional script after Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:7.1-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/7.2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ inputs:
magento_post_install_script:
description: 'Relative path to an optional script after Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:7.2-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/7.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ inputs:
magento_post_install_script:
description: 'Relative path to an optional script after Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:7.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/7.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: 'DEPREACATED. Composer v2 is now always used.'
required: false
default: '1'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:7.4-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/8.1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: 'DEPREACATED. Composer v2 is now always used.'
required: false
default: '1'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:8.1-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/8.2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: 'DEPREACATED. Composer v2 is now always used.'
required: false
default: '2'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:8.2-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/8.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: 'DEPREACATED. Composer v2 is now always used.'
required: false
default: '2'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:8.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-integration-tests/8.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ inputs:
description: 'DEPREACATED. Composer v2 is now always used.'
required: false
default: '2'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-integration-tests-action:8.4-latest'
Expand Down
7 changes: 6 additions & 1 deletion magento-integration-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ test -z "${PROJECT_NAME}" && PROJECT_NAME=$INPUT_PROJECT_NAME
test -z "${ELASTICSEARCH}" && ELASTICSEARCH=$INPUT_ELASTICSEARCH
test -z "${PHPUNIT_FILE}" && PHPUNIT_FILE=$INPUT_PHPUNIT_FILE
test -z "${REPOSITORY_URL}" && REPOSITORY_URL=$INPUT_REPOSITORY_URL
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE=$INPUT_BLOCK_INSECURE

# Maintain backwards-compatibility with old 'ce_version' input.
test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$INPUT_CE_VERSION
Expand All @@ -19,6 +20,7 @@ test -z "$MAGENTO_VERSION" && MAGENTO_VERSION="2.4.3-p1"
test -z "$PROJECT_NAME" && PROJECT_NAME="magento/project-community-edition"
test -z "${REPOSITORY_URL}" && REPOSITORY_URL="https://repo-magento-mirror.fooman.co.nz/"
test -z "$DISABLE_DATABASE_DUMP" && DISABLE_DATABASE_DUMP="1"
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE="true"

if [[ "$MAGENTO_VERSION" == "2.4."* ]]; then
ELASTICSEARCH=1
Expand Down Expand Up @@ -85,8 +87,11 @@ if [[ "$MAGENTO_VERSION" == "2.4.4" ]]; then
composer require monolog/monolog:2.6.0 --no-update
fi

echo "Configure Composer audit.block-insecure"
composer config audit.block-insecure "$BLOCK_INSECURE"

echo "Ignore known security advisories"
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI"}'
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}'

echo "Run installation"
COMPOSER_MEMORY_LIMIT=-1 composer install --no-interaction --no-progress
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/7.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:7.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/7.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:7.4-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/8.1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:8.1-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/8.2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:8.2-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/8.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:8.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/8.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:8.4-latest'
Expand Down
2 changes: 1 addition & 1 deletion magento-phpstan/Dockerfile:7.3
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN composer config --unset repo.0
RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/
RUN composer config --no-plugins allow-plugins true
RUN composer require hoa/regex --no-update
RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI"}'
RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}'
RUN composer install --prefer-dist

FROM extdn/magento-integration-tests-action:7.3-latest
Expand Down
2 changes: 1 addition & 1 deletion magento-phpstan/Dockerfile:7.4
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN composer config --unset repo.0
RUN composer config repo.foomanmirror composer https://repo-magento-mirror.fooman.co.nz/
RUN composer config --no-plugins allow-plugins true
RUN composer require hoa/regex --no-update
RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI"}'
RUN composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}'
RUN composer install --prefer-dist

FROM extdn/magento-integration-tests-action:7.4-latest
Expand Down
4 changes: 4 additions & 0 deletions magento-phpstan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
required: false
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: "true"
runs:
using: 'docker'
image: 'docker://extdn/magento-phpstan-action:latest'
Expand Down
5 changes: 5 additions & 0 deletions magento-phpstan/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -e
test -z "${MODULE_SOURCE}" && MODULE_SOURCE=$INPUT_MODULE_SOURCE
test -z "${COMPOSER_NAME}" && COMPOSER_NAME=$INPUT_COMPOSER_NAME
test -z "${PHPSTAN_LEVEL}" && PHPSTAN_LEVEL=$INPUT_PHPSTAN_LEVEL
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE=$INPUT_BLOCK_INSECURE
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE="true"

MAGENTO_ROOT=/var/www/magento2ce
test -d "${MAGENTO_ROOT}" || (test -d /var/www/magento2ce && MAGENTO_ROOT=/tmp/m2)
Expand All @@ -26,6 +28,9 @@ if [ -n "$INPUT_MAGENTO_PRE_INSTALL_SCRIPT" ] && [ -f "${GITHUB_WORKSPACE}"/"$IN
. "${GITHUB_WORKSPACE}"/"$INPUT_MAGENTO_PRE_INSTALL_SCRIPT";
fi;

echo "Configure Composer audit.block-insecure"
composer config audit.block-insecure "$BLOCK_INSECURE"

echo "Installing module"
COMPOSER_MIRROR_PATH_REPOS=1 composer require $COMPOSER_NAME:@dev --no-interaction --dev || exit

Expand Down
4 changes: 4 additions & 0 deletions magento-quick-integration-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://yireo/github-actions-magento-quick-integration-tests:latest'
Expand Down
7 changes: 6 additions & 1 deletion magento-quick-integration-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$INPUT_MAGENTO_VERSION
test -z "${MODULE_NAME}" && MODULE_NAME=$INPUT_MODULE_NAME
test -z "${MODULE_SOURCE}" && MODULE_SOURCE=$INPUT_MODULE_SOURCE
test -z "${PROJECT_NAME}" && PROJECT_NAME=$INPUT_PROJECT_NAME
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE=$INPUT_BLOCK_INSECURE

# Maintain backwards-compatibility with old 'ce_version' input.
test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$INPUT_CE_VERSION
test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$CE_VERSION
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE="true"

test -z "${MODULE_NAME}" && (echo "'module_name' is not set in your GitHub Actions YAML file" && exit 1)
test -z "${COMPOSER_NAME}" && (echo "'composer_name' is not set in your GitHub Actions YAML file" && exit 1)
Expand Down Expand Up @@ -54,8 +56,11 @@ if [[ ! -z "$INPUT_MAGENTO_PRE_INSTALL_SCRIPT" && -f "${GITHUB_WORKSPACE}/$INPUT
. ${GITHUB_WORKSPACE}/$INPUT_MAGENTO_PRE_INSTALL_SCRIPT
fi

echo "Configure Composer audit.block-insecure"
composer config audit.block-insecure "$BLOCK_INSECURE"

echo "Ignore known security advisories"
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI"}'
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}'

echo "Run installation"
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction --no-progress
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/7.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:7.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/7.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:7.4-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/8.1/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:8.1-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/8.2/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:8.2-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/8.3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:8.3-latest'
Expand Down
4 changes: 4 additions & 0 deletions magento-unit-tests/8.4/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Relative path to your own PHPUnit file. Leave empty to use the default.'
magento_pre_install_script:
description: 'Relative path to an optional script before Magento installation is run. Leave empty to use the default.'
block_insecure:
description: 'Whether Composer should block insecure packages during audit. Set to false to allow insecure packages.'
required: false
default: 'true'
runs:
using: 'docker'
image: 'docker://extdn/magento-unit-tests-action:8.4-latest'
Expand Down
7 changes: 6 additions & 1 deletion magento-unit-tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ test -z "${COMPOSER_NAME}" && COMPOSER_NAME=$INPUT_COMPOSER_NAME
test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$INPUT_MAGENTO_VERSION
test -z "${PROJECT_NAME}" && PROJECT_NAME=$INPUT_PROJECT_NAME
test -z "${PHPUNIT_FILE}" && PHPUNIT_FILE=$INPUT_PHPUNIT_FILE
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE=$INPUT_BLOCK_INSECURE

test -z "$MAGENTO_VERSION" && MAGENTO_VERSION="2.4.4"
test -z "$PROJECT_NAME" && PROJECT_NAME="magento/project-community-edition"
test -z "${BLOCK_INSECURE}" && BLOCK_INSECURE="true"

test -z "${MODULE_NAME}" && (echo "'module_name' is not set" && exit 1)
test -z "${COMPOSER_NAME}" && (echo "'composer_name' is not set" && exit 1)
Expand Down Expand Up @@ -50,8 +52,11 @@ fi
echo "Allow composer plugins"
composer config --no-plugins allow-plugins true

echo "Configure Composer audit.block-insecure"
composer config audit.block-insecure "$BLOCK_INSECURE"

echo "Ignore known security advisories"
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI"}'
composer config --json audit.ignore '{"PKSA-z3gr-8qht-p93v": "Ignored for CI", "PKSA-rkkf-636k-qjb3": "Ignored for CI", "PKSA-wws7-mr54-jsny": "Ignored for CI", "PKSA-db8d-773v-rd1n": "Ignored for CI"}'

echo "Run installation"
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction --no-progress
Expand Down