Skip to content

Commit 35d85d1

Browse files
authored
chore(codeql): migration (#3113)
1 parent 1430ed8 commit 35d85d1

File tree

30 files changed

+71
-69
lines changed

30 files changed

+71
-69
lines changed

.github/codeql/codeql-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths-ignore:
2+
- docs

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches: ['main', '*/main']
6+
7+
pull_request:
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [javascript]
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v2
29+
with:
30+
languages: ${{ matrix.language }}
31+
config-file: ./.github/codeql/codeql-config.yml
32+
queries: +security-and-quality
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v2
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v2
39+
with:
40+
category: '/language:${{ matrix.language }}'

canary/apps/vue/vite/vite.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { fileURLToPath, URL } from 'url';
2-
31
import { defineConfig } from 'vite';
42
import vue from '@vitejs/plugin-vue';
53

canary/e2e/cypress/integration/common/shared.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
/// <reference types="cypress" />
33
/// <reference types="../../support/commands" />
44

5-
import { And, Given, Then, When } from 'cypress-cucumber-preprocessor/steps';
6-
import { get, escapeRegExp } from 'lodash';
5+
import { Given, Then, When } from 'cypress-cucumber-preprocessor/steps';
6+
import { escapeRegExp } from 'lodash';
77

88
let language = 'en-US';
9-
let window = null;
109

1110
Given("I'm running the example {string}", (example: string) => {
1211
cy.visit(example, {

canary/e2e/cypress/integration/common/sign-up.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="@testing-library/cypress" />
22
/// <reference types="cypress" />
3-
import { Given, Then, When } from 'cypress-cucumber-preprocessor/steps';
3+
import { Given, When } from 'cypress-cucumber-preprocessor/steps';
44

55
Given('I click {string}', (text: string) => {
66
cy.findByText(text).click();

examples/angular/src/pages/ui/components/authenticator/useAuthenticator/useAuthenticator.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
import { Amplify, Auth } from 'aws-amplify';
1+
import { Component } from '@angular/core';
2+
import { Amplify } from 'aws-amplify';
33
import { AuthenticatorService } from '@aws-amplify/ui-angular';
44

55
import awsExports from './aws-exports';

examples/next/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defaultTheme, Theme } from '@aws-amplify/ui-react';
2-
import { flipPalette, usePalette } from 'utils';
2+
import { flipPalette } from 'utils';
33

44
export const theme: Theme = {
55
name: 'listings-theme',

packages/angular/projects/ui-angular/src/lib/components/authenticator/components/confirm-sign-up/confirm-sign-up.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, HostBinding, Input } from '@angular/core';
1+
import { Component, HostBinding } from '@angular/core';
22
import { AuthenticatorService } from '../../../../services/authenticator.service';
33
import {
44
FormFieldsArray,

packages/angular/projects/ui-angular/src/lib/components/authenticator/components/sign-up/sign-up-form-fields/sign-up-form-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'amplify-sign-up-form-fields',

packages/e2e/cypress/integration/ui/components/authenticator/confirm-sign-up/confirm-sign-up.steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Then, When } from '@badeball/cypress-cucumber-preprocessor';
1+
import { Then } from '@badeball/cypress-cucumber-preprocessor';
22

33
Then('I see an error alert', () => {
44
cy.findByRole('alert').should('exist');

0 commit comments

Comments
 (0)