Skip to content
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

PROTO-1775: rm tcr env #8119

Merged
merged 5 commits into from
Apr 23, 2024
Merged

PROTO-1775: rm tcr env #8119

merged 5 commits into from
Apr 23, 2024

Conversation

alecsavvy
Copy link
Contributor

@alecsavvy alecsavvy commented Apr 16, 2024

Description

This removes the tcr.env from the rewards bot so it can use override.env instead. This should make it compatible with audius-d. This also adds a tcr prefix to all env vars so they can be easily identified in the override.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

@alecsavvy alecsavvy requested a review from phelpsdb April 16, 2024 15:33
@alecsavvy alecsavvy self-assigned this Apr 16, 2024
Copy link

changeset-bot bot commented Apr 16, 2024

⚠️ No Changeset found

Latest commit: b30997e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pull-request-size pull-request-size bot added size/M and removed size/S labels Apr 22, 2024
Comment on lines -59 to -68

export const condition = (app: App<SharedData>): boolean => {
// "Fri 09:43:00 GMT-0600"
const { dateToRun } = app.viewAppData()
const date = Date.parse(dateToRun)
const timeToDisburse = moment(date)
const now = moment()
if (now.isSame(timeToDisburse, 'seconds')) return true
return false
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing this is just unused cruft

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this used to rely on the date env var i removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we use cron now

@alecsavvy alecsavvy enabled auto-merge (squash) April 22, 2024 21:14
Copy link

gitguardian bot commented Apr 23, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
688750 Triggered Generic High Entropy Secret b30997e packages/mobile/src/env/env.prod.ts View secret
1606949 Triggered Generic High Entropy Secret b30997e packages/mobile/src/env/env.prod.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@alecsavvy alecsavvy merged commit 2789c96 into main Apr 23, 2024
11 checks passed
@alecsavvy alecsavvy deleted the as/proto-1775-rm-tcr-env branch April 23, 2024 17:09
audius-infra pushed a commit that referenced this pull request Apr 24, 2024
[5ad42e0] Fix solana relay cache key (#8219) Marcus Pasell
[deb3f2a] [PAY-2747] Fix attestation decoding and add Secp256k1Program utils (#8210) Marcus Pasell
[342d610] [PAY-2749] Use ownerWallet instead of delegateOwnerWallet for uniquely owned endpoints in SDK (#8217) Marcus Pasell
[3cfc215] [PAY-2550] Add images to apps (#8196) Raymond Jacobson
[a9e0313] Combine ddex crawler+parser, and add dev cmd (#8203) Theo Ilie
[2789c96] PROTO-1775: rm tcr env (#8119) alecsavvy
[79c4acc] [C-3921] Stop sending signature headers as params (#7774) Raymond Jacobson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants