Skip to content

Vendor new-relic-deploy via Composer (to address Snyk alerts) - #280

Open
banoodle wants to merge 6 commits into
mainfrom
new-relic-deploy
Open

Vendor new-relic-deploy via Composer (to address Snyk alerts)#280
banoodle wants to merge 6 commits into
mainfrom
new-relic-deploy

Conversation

@banoodle

@banoodle banoodle commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Note

Via a support ticket, Pantheon support told me the version of the new_relic_deploy script here...

https://github.com/pantheon-quicksilver/new-relic-deploy

...is a stale copy, and the current working version of the script is here:

https://github.com/pantheon-systems/quicksilver-examples/blob/main/new_relic_deploy/new_relic_deploy.php

I wish Pantheon would issue a 2.0 release of pantheon-quicksilver/new-relic-deploy. I suggested it in the ticket, but I doubt they will listen to me ; )

Summary

Addresses #279 - Our version of the new_relic_deploy quicksilver script throws Snyk vulnerability alerts and doesn't work with the current New Relic API.

  • Replaces the checked-in copies of the New Relic deploy Quicksilver script with the upstream pantheon-systems/quicksilver-examples package, managed via Composer.
  • Adds instructions to README for setting up the project's New Relic API key and using terminus to set the secret for the site.

Note

This will need to be done for a lot of our projects. I have done it for Humane World on pending PR-624, and validated that it works:

Screenshot 2026-06-05 at 3 30 01 PM Screenshot 2026-06-05 at 3 47 00 PM

🤖 Generated with Claude Code

Require pantheon-quicksilver/new-relic-deploy as an inline package
(upstream pins composer/installers ~1.0, conflicting with ^2). Add
the quicksilver-script installer type, point the sync_code and deploy
workflows at the vendored script, and remove the two checked-in copies.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@banoodle
banoodle requested a review from a team as a code owner June 5, 2026 17:53
@banoodle
banoodle requested a review from paulsheldrake June 5, 2026 17:59
@banoodle
banoodle marked this pull request as draft June 5, 2026 19:59
@banoodle
banoodle removed the request for review from paulsheldrake June 5, 2026 19:59
banoodle and others added 2 commits June 5, 2026 14:52
The pantheon-quicksilver/new-relic-deploy package is functionally stale
(deprecated binding API key + New Relic REST v2 deploy markers). Swap it
for Pantheon's current quicksilver-examples script (NerdGraph
changeTrackingCreateDeployment + pantheon_get_secret), defined inline as
a quicksilver-script pinned to commit ebc53ff. Repoint both pantheon.yml
hooks at the new path.

NOTE: requires a Pantheon secret named new_relic_api_key (New Relic User
API key) or the script bails with no metadata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The vendored New Relic deploy script reads the API key from a Pantheon
secret (new_relic_api_key). Add a one-time, per-site initialization step
to the README documenting the terminus secret:site:set command and the
required New Relic User key, scope, and type, per Pantheon's docs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@banoodle
banoodle marked this pull request as ready for review June 5, 2026 22:51
@banoodle
banoodle requested a review from paulsheldrake June 5, 2026 22:52

@sean-e-dietrich sean-e-dietrich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason i thought we would only have that 1 part, unfortunately this will add everything from the repo into the project, at this point it might be better to update the project with what they have in the examples repo

@banoodle banoodle changed the title Vendor new-relic-deploy via Composer Vendor new-relic-deploy via Composer (to address Snyk alerts) Jul 15, 2026
@banoodle

Copy link
Copy Markdown
Contributor Author

OK @sean-e-dietrich - I removed it from composer management and just added the single script to the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants