Skip to content

Commit

Permalink
SA-200: Update workflow to add patch for civicrm_drupal repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yogesh-compuco committed Jun 17, 2024
1 parent ef1bf45 commit 097c6cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
wget https://storage.googleapis.com/civicrm/civicrm-stable/${base_version}/${civi_package}
tar xzf ./${civi_package} -C to-be-patched
- name: Apply PR https://github.com/civicrm/civicrm-drupal/pull/681
run: |
cd ..
rm -f to-be-patched/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module
wget https://raw.githubusercontent.com/compucorp/civicrm-drupal/8037a4c636cf6f918f8c7fde5939febfeafe3143/modules/civicrm_member_roles/civicrm_member_roles.module
mv civicrm_member_roles.module to-be-patched/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module
- name: Apply SMARTY MATH RCE patch "CIVI-SA-2023-07"
run: |
cd ..
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
echo "Cloning branch $BRANCHNAME from $GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
git clone -b $BRANCHNAME --depth 1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git civicrm
cd civicrm
git clone -b 7.x-${{ github.event.inputs.civiver }} --depth 1 https://github.com/compucorp/civicrm-drupal.git drupal
git clone -b 7.x-${{ github.event.inputs.civiver }} --depth 1 https://github.com/civicrm/civicrm-drupal.git drupal
git clone -b ${{ github.event.inputs.civiver }} --depth 1 https://github.com/civicrm/civicrm-packages.git packages
COMPOSER_MEMORY_LIMIT=-1 composer install
npm install
Expand Down

0 comments on commit 097c6cc

Please sign in to comment.