Skip to content

Commit 2e749d0

Browse files
mohandast52OjusWiZardCopilotDhairyaPatel7Tanya-atatakai
authored
feat: main to staging (#1367)
* Feat: Add Snyk checks Signed-off-by: Ojuswi Rastogi <ojuswimail@gmail.com> * Update .github/workflows/snyk-security.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * release: RC399 (#1336) * chore: update Baby Degen hash (#1297) * chore: update babydegen hash (#1328) * chore: update version to 0.2.0-rc399 in package.json and pyproject.toml * chore: update version to 0.2.1-rc399 in package.json and pyproject.toml --------- Co-authored-by: Dhairya <dhairyapatel72@gmail.com> * Apply suggestion from @OjusWiZard * release: pearl v1 * fix: rename coingecko api url * fix: correct agent displayName values for Predict Trader and Agents.fun (#1366) * fix: correct agent displayName values for Predict Trader and Agents.fun * fix: correct PredictTrader agent displayName to Prediction Trader --------- Signed-off-by: Ojuswi Rastogi <ojuswimail@gmail.com> Co-authored-by: Ojuswi Rastogi <ojuswimail@gmail.com> Co-authored-by: Ojuswi Rastogi <55619686+OjusWiZard@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Dhairya <dhairyapatel72@gmail.com> Co-authored-by: Atatakai <densatsu@mail.ru> Co-authored-by: Rajat Verma <rajatverma5885045@gmail.com>
1 parent e889756 commit 2e749d0

6 files changed

Lines changed: 91 additions & 7 deletions

File tree

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# A sample workflow which sets up Snyk to analyze the full Snyk platform (Snyk Open Source, Snyk Code,
7+
# Snyk Container and Snyk Infrastructure as Code)
8+
# The setup installs the Snyk CLI - for more details on the possible commands
9+
# check https://docs.snyk.io/snyk-cli/cli-reference
10+
# The results of Snyk Code are then uploaded to GitHub Security Code Scanning
11+
#
12+
# In order to use the Snyk Action you will need to have a Snyk API token.
13+
# More details in https://github.com/snyk/actions#getting-your-snyk-token
14+
# or you can signup for free at https://snyk.io/login
15+
#
16+
# For more examples, including how to limit scans to only high-severity issues
17+
# and fail PR checks, see https://github.com/snyk/actions/
18+
19+
name: Snyk Security
20+
21+
on:
22+
push:
23+
branches: ["main", "staging"]
24+
pull_request:
25+
branches: ["main", "staging"]
26+
27+
permissions:
28+
contents: read
29+
30+
jobs:
31+
snyk:
32+
continue-on-error: true
33+
permissions:
34+
contents: read # for actions/checkout to fetch code
35+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
36+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
37+
runs-on: ubuntu-latest
38+
39+
env:
40+
# This is where you will need to introduce the Snyk API token created with your Snyk account
41+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
42+
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Set up Snyk CLI to check for security issues
46+
# Snyk can be used to break the build when it detects security issues.
47+
# In this case we want to upload the SAST issues to GitHub Code Scanning
48+
uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb
49+
50+
# For Snyk Open Source you must first set up the development environment for your application's dependencies
51+
# For example for Node
52+
#- uses: actions/setup-node@v4
53+
# with:
54+
# node-version: 20
55+
56+
# Runs Snyk Code (SAST) analysis and uploads result into GitHub.
57+
# Use || true to not fail the pipeline
58+
- name: Snyk Code test
59+
run: snyk code test --sarif > snyk-code.sarif
60+
continue-on-error: true
61+
62+
# Runs Snyk Open Source (SCA) analysis and uploads result to Snyk.
63+
- name: Snyk Open Source monitor
64+
run: snyk monitor --all-projects
65+
66+
# Disabled because this repo does not use IaC or Docker yet
67+
68+
# # Runs Snyk Infrastructure as Code (IaC) analysis and uploads result to Snyk.
69+
# # Use || true to not fail the pipeline.
70+
# - name: Snyk IaC test and report
71+
# run: snyk iac test --report # || true
72+
73+
# # Build the docker image for testing
74+
# - name: Build a Docker image
75+
# run: docker build -t your/image-to-test .
76+
# # Runs Snyk Container (Container and SCA) analysis and uploads result to Snyk.
77+
# - name: Snyk Container monitor
78+
# run: snyk container monitor your/image-to-test --file=Dockerfile
79+
80+
# Push the Snyk Code results into GitHub Code Scanning tab
81+
- name: Upload result to GitHub Code Scanning
82+
uses: github/codeql-action/upload-sarif@v3
83+
with:
84+
sarif_file: snyk-code.sarif

frontend/components/AgentForms/common/labels.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Flex, Typography } from 'antd';
22

33
import { FormLabel } from '@/components/ui/Typography';
44
import { UNICODE_SYMBOLS } from '@/constants/symbols';
5-
import { COINGECKO_DEMO_API_KEY, GEMINI_API_URL } from '@/constants/urls';
5+
import { COINGECKO_DEMO_API_URL, GEMINI_API_URL } from '@/constants/urls';
66

77
const { Text, Title } = Typography;
88

@@ -58,7 +58,7 @@ export const GeminiApiKeyLabel = () => (
5858
export const CoinGeckoApiKeyDesc = () => (
5959
<Flex vertical gap={4} style={{ marginBottom: 252 }}>
6060
<Text>
61-
<a target="_blank" href={COINGECKO_DEMO_API_KEY}>
61+
<a target="_blank" href={COINGECKO_DEMO_API_URL}>
6262
Learn how to get a free CoinGecko API key&nbsp;
6363
{UNICODE_SYMBOLS.EXTERNAL_LINK}
6464
</a>

frontend/config/agents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const AGENT_CONFIG: {
6464
requiresAgentSafesOn: [EvmChainId.Gnosis],
6565
requiresMasterSafesOn: [EvmChainId.Gnosis],
6666
serviceApi: PredictTraderService,
67-
displayName: 'Prediction',
67+
displayName: 'Prediction Trader',
6868
description: 'Participates in prediction markets.',
6969
hasExternalFunds: false,
7070
hasChatUI: true,
@@ -111,7 +111,7 @@ export const AGENT_CONFIG: {
111111
requiresAgentSafesOn: [EvmChainId.Base],
112112
requiresMasterSafesOn: [EvmChainId.Base],
113113
serviceApi: AgentsFunBaseService,
114-
displayName: 'Agents.fun - Base',
114+
displayName: 'Agents.fun',
115115
description:
116116
'Autonomously posts to Twitter, creates and trades memecoins, and interacts with other agents. Agent is operating on Base chain.',
117117
hasExternalFunds: false,

frontend/constants/urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const GITHUB_API_RELEASES: Url =
3939

4040
// others
4141
export const COINGECKO_URL: string = 'https://www.coingecko.com';
42-
export const COINGECKO_DEMO_API_KEY: string =
42+
export const COINGECKO_DEMO_API_URL: string =
4343
'https://support.coingecko.com/hc/en-us/articles/21880397454233-User-Guide-How-to-sign-up-for-CoinGecko-Demo-API-and-generate-an-API-key';
4444
export const GEMINI_API_URL: string = 'https://aistudio.google.com/app/apikey';
4545
export const WEB3AUTH_URL: Url = 'https://web3auth.io';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"start:frontend": "cd frontend && yarn start",
8484
"test:frontend": "cd frontend && yarn test"
8585
},
86-
"version": "0.2.0-rc392",
86+
"version": "1.0.0-rc1",
8787
"engine": {
8888
"node": "20.18.1",
8989
"yarn": ">=1.22.0",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "olas-operate-app"
3-
version = "0.2.0-rc392"
3+
version = "1.0.0-rc1"
44
description = ""
55
authors = ["David Vilela <dvilelaf@gmail.com>", "Viraj Patel <vptl185@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)