diff --git a/.github/workflows/cypress-workflow.yml b/.github/workflows/cypress-workflow.yml index cdef2caa7..7c32bfba7 100644 --- a/.github/workflows/cypress-workflow.yml +++ b/.github/workflows/cypress-workflow.yml @@ -7,8 +7,8 @@ on: branches: - "*" env: - OPENSEARCH_DASHBOARDS_VERSION: '2.9' - SECURITY_ANALYTICS_BRANCH: '2.x' + OPENSEARCH_DASHBOARDS_VERSION: '2.9.0' + SECURITY_ANALYTICS_BRANCH: '2.9' jobs: tests: name: Run Cypress E2E tests diff --git a/public/pages/Rules/components/RuleContentViewer/RuleContentViewer.tsx b/public/pages/Rules/components/RuleContentViewer/RuleContentViewer.tsx index 9c5c83afb..193ebfa39 100644 --- a/public/pages/Rules/components/RuleContentViewer/RuleContentViewer.tsx +++ b/public/pages/Rules/components/RuleContentViewer/RuleContentViewer.tsx @@ -129,11 +129,29 @@ export const RuleContentViewer: React.FC = ({ gutterSize="s" data-test-subj={'rule_flyout_rule_tags'} > - {ruleData.tags.map((tag: any, i: number) => ( - - {tag.value} - - ))} + {ruleData.tags.map((tag: { value: string }, i: number) => { + const isLinkable = !!tag.value.match(/attack\.t[0-9]+/); + let tagComponent: React.ReactNode = tag.value; + + if (isLinkable) { + const link = `https://attack.mitre.org/techniques/${tag.value + .split('.') + .slice(1) + .join('/') + .toUpperCase()}`; + tagComponent = ( + + {tag.value} + + ); + } + + return ( + + {tagComponent} + + ); + })} ) : (
{DEFAULT_EMPTY_DATA}