-
Notifications
You must be signed in to change notification settings - Fork 3
**FINAL REMINDER****IMPORTANT** **ACTION REQUIRED** Migration of ubuntu-latest label to platform-eng-ent-v2-dual #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
* use self hosted runner on platform for testing * add nodejs setup * set all 3 stages to self hosted agent * add to github runner setup * Update terraform.yaml * set precommit cache * add name to precommit cache * remove terraform locking * skip more hooks * remove validate skip * protect label name and enable self hosted runner by default * remove setup correct runner flag * test literal * try double quotes * test setup runner * test * set runner label via secrets * set to env var * harcode test * remove secrets add inputs * fix actionlint --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
* test public * test default label * test self hosted * test without runner label * default is ubuntu * test labels * add examples --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
#39) Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
* Allow docker login to fail as not all have credentials * only user dockerhub login if its not null creds * check both creds * set correct token * update README --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
* fix warnings (#36) Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com> * update python action (#37) Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com> * Cache TFLint plugins and use authenticated API calls - https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting - Caching example: https://github.com/terraform-linters/setup-tflint#usage * Use target * Runner OS --------- Co-authored-by: Poh Peng Ric Wang <7760361+thepoppingone@users.noreply.github.com> Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
* refactor to run only against changed files * update tflint side * add inputs * Remove cron workflow --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Forcing in to test the merge group fix in cloud config * test merge event * update ref * use base ref * update to new keywords of Github to fix merge group checks failing --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
…st diffs (#50) Force merge to do live-testing in cloud config * rebase * test workflow trigger for PR, MG and main * fix missing condition * add condition for checking event * test main github sha env var * add in for linting * refactor for merge queue --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
urgent fix
* test fork pr * test expression * add forktest * sort out spacing --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com> merging for monitoring v2 in production
* Update terraform.yaml * Update terraform.yaml * Update terraform.yaml * Update terraform.yaml
* fix warnings (#36) Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com> * update python action (#37) Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com> * Added Reusable Workflow for Trivy Scan for ECS/Docker Container * Fix the precommit formatting * Fixing the double quotes issue --------- Co-authored-by: Poh Peng Ric Wang <7760361+thepoppingone@users.noreply.github.com> Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
Co-authored-by: thepoppingone <thepoppingone@users.noreply.github.com>
* Add trivy scan for testing * update output format * Use 0.13.0 * use version * version lock trivy action * use 0.12.0 * upload results * Test with sed * Update terraform.yaml * Update terraform.yaml --------- Co-authored-by: Poh Peng <thepoppingone@users.noreply.github.com>
* Add option to skip framework in checkov * Fix space --------- Co-authored-by: “Subramanian <“smoneyan@gmail.com”>
* Upload checkov SARIF * Change trivy sarif to v3 as well * Upgrade version * Update helm * disable trivy * continue on error * Remove condition * Add soft fail as true * Add files changed * Add Trivy back * Remove continue on error --------- Co-authored-by: “Subramanian <“smoneyan@gmail.com”>
* disable sarif upload * disable sarif upload * change exit-code --------- Co-authored-by: niroz89 <niro@sph.com.sg>
* fix trivy scan and update * fix trivy scan and update
Co-authored-by: “Subramanian <“smoneyan@gmail.com”>
* [CIRDEVOPS-2553] parameterize trivy output format * [CIRDEVOPS-2553] parameterize trivy output filename * [CIRDEVOPS-2553] parameterize trivy output filename [1] * [CIRDEVOPS-2553] Add parameter to inspect trivy output * [CIRDEVOPS-2553] When trivy inspect is on, upload result as an artifact
* update GitHub Security Alerts for JIRA workflow * Update the workflow versions
* switch to enable only format and validate * add switch to select format, lint or security * add switch to select format, lint or security * add switch to select format, lint or security
#107) * [PFMENG-2854] Use enterprise runner for newrelic deployment market job * [PFMENG-2854] Configures actionlint to allow custom runner label
Co-authored-by: “Subramanian <“smoneyan@gmail.com”>
with: | ||
apiKey: ${{ secrets.NEW_RELIC_API_KEY }} | ||
region: "US" | ||
guid: ${{ secrets[format('NEW_RELIC_DEPLOYMENT_ENTITY_GUID_{0}', inputs.app_name )] }} |
Check warning
Code scanning / CodeQL
Excessive Secrets Exposure Medium
secrets[format('NEW_RELIC_DEPLOYMENT_ENTITY_GUID_{0}', inputs.app_name )]
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 2 months ago
To fix the problem, we need to avoid using dynamic secret access patterns and instead explicitly specify the secrets required for each possible value of inputs.app_name
. This can be achieved by using conditional statements to set the appropriate secret based on the value of inputs.app_name
.
- Replace the dynamic secret access pattern with explicit secret references.
- Use conditional statements to set the correct secret based on the value of
inputs.app_name
. - Ensure that only the necessary secrets are passed to the workflow runner.
-
Copy modified line R59
@@ -58,3 +58,3 @@ | ||
region: "US" | ||
guid: ${{ secrets[format('NEW_RELIC_DEPLOYMENT_ENTITY_GUID_{0}', inputs.app_name )] }} | ||
guid: ${{ inputs.app_name == 'APP1' && secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID_APP1 || inputs.app_name == 'APP2' && secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID_APP2 || inputs.app_name == 'APP3' && secrets.NEW_RELIC_DEPLOYMENT_ENTITY_GUID_APP3 }} | ||
version: "${{ inputs.version }}" |
Automated PR: This PR updates ubuntu-latest runner labels to platform-eng-ent-v2-dual. Migration Deadline is 3rd April 2025