diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000000..cc47a5fb972c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,72 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '17 7 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/package-lock.json b/package-lock.json index dcfd2617b743..c6c079054749 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@primer/css": "^19.4.0", "@primer/octicons": "17.0.0", "@primer/octicons-react": "17.0.0", - "@primer/react": "^34.7.1", + "@primer/react": "^35.5.0", "@react-aria/ssr": "^3.1.0", "accept-language-parser": "^1.5.0", "ajv": "^8.9.0", @@ -4122,9 +4122,9 @@ } }, "node_modules/@primer/behaviors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@primer/behaviors/-/behaviors-1.1.0.tgz", - "integrity": "sha512-Ej2OUc3ZIFaR7WwIUqESO1DTzmpb7wc8xbTVRT9s52jZQDjN7g5iljoK3ocYZm+BIAcKn3MvcwB42hEk4Ga4xQ==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@primer/behaviors/-/behaviors-1.1.3.tgz", + "integrity": "sha512-WpCcjAkXG7Lv3ZbaCUgASWKHnCi/pmuSEiyTmHHb6f5xhwk1mliixNL5ZZHtDN6RCcT3VnXUsyek4GopG2lbZQ==" }, "node_modules/@primer/css": { "version": "19.4.0", @@ -4137,11 +4137,6 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, - "node_modules/@primer/css/node_modules/@primer/primitives": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.4.0.tgz", - "integrity": "sha512-gD6yHXN7YKox/bdUNgxhoSS/WXZVaORK1r4dOAyTrdoPrLV/ucIfRInPyVcTF+Mqr0zcTFJtiMtuA5Y8CSyOEg==" - }, "node_modules/@primer/octicons": { "version": "17.0.0", "resolved": "https://registry.npmjs.org/@primer/octicons/-/octicons-17.0.0.tgz", @@ -4162,33 +4157,33 @@ } }, "node_modules/@primer/primitives": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.1.1.tgz", - "integrity": "sha512-+Gwo89YK1OFi6oubTlah/zPxxzMNaMLy+inECAYI646KIFdzzhAsKWb3z5tSOu5Ff7no4isRV64rWfMSKLZclw==" + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.8.4.tgz", + "integrity": "sha512-cXmnhKBvrwbP3FYR9oxNYx3s8y2svsQLbDNZuoGcsZJLQ6RD3HfQ9ZtXgbyTbTYTyfPvkyd0pkQLI7tRJSc5kg==" }, "node_modules/@primer/react": { - "version": "34.7.1", - "resolved": "https://registry.npmjs.org/@primer/react/-/react-34.7.1.tgz", - "integrity": "sha512-9OLRo3N1/B/jqb7aJPY7xmtyKM8afZlmWLnEOmT8LOCmuwPiRXI+4GsJjaV9RPx3h8rUXBQwpaYZGDDj9+/OjA==", - "dependencies": { - "@primer/behaviors": "1.1.0", - "@primer/octicons-react": "16.1.1", - "@primer/primitives": "7.1.1", - "@radix-ui/react-polymorphic": "0.0.14", - "@react-aria/ssr": "3.1.0", - "@styled-system/css": "5.1.5", - "@styled-system/props": "5.1.5", - "@styled-system/theme-get": "5.1.2", - "@types/styled-components": "5.1.11", - "@types/styled-system": "5.1.12", - "@types/styled-system__css": "5.0.16", - "@types/styled-system__theme-get": "5.0.1", - "classnames": "2.3.1", - "color2k": "1.2.4", - "deepmerge": "4.2.2", - "focus-visible": "5.2.0", - "history": "5.0.0", - "styled-system": "5.1.5" + "version": "35.5.0", + "resolved": "https://registry.npmjs.org/@primer/react/-/react-35.5.0.tgz", + "integrity": "sha512-jqF3T1c/F0pCjfuGTRfB8QphEC6u9ZR+vao4MZDk1vQN9QiPCep07i6f6ijy9F7kNlhe/IGVz49tQaX5KDxM8w==", + "dependencies": { + "@primer/behaviors": "^1.1.1", + "@primer/octicons-react": "^17.3.0", + "@primer/primitives": "7.8.4", + "@radix-ui/react-polymorphic": "^0.0.14", + "@react-aria/ssr": "^3.1.0", + "@styled-system/css": "^5.1.5", + "@styled-system/props": "^5.1.5", + "@styled-system/theme-get": "^5.1.2", + "@types/styled-components": "^5.1.11", + "@types/styled-system": "^5.1.12", + "@types/styled-system__css": "^5.0.16", + "@types/styled-system__theme-get": "^5.0.1", + "classnames": "^2.3.1", + "color2k": "^1.2.4", + "deepmerge": "^4.2.2", + "focus-visible": "^5.2.0", + "history": "^5.0.0", + "styled-system": "^5.1.5" }, "engines": { "node": ">=12", @@ -4201,9 +4196,9 @@ } }, "node_modules/@primer/react/node_modules/@primer/octicons-react": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@primer/octicons-react/-/octicons-react-16.1.1.tgz", - "integrity": "sha512-xCxQ5z23ol7yDuJs85Lc4ARzyoay+b3zOhAKkEMU7chk0xi2hT2OnRP23QUudNNDPTGozX268RGYLexUa6P4xw==", + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/@primer/octicons-react/-/octicons-react-17.4.0.tgz", + "integrity": "sha512-3h+/5CqwvQ9lUzlY+g25v6KoM5eVq1/3OjNslphKqiw/fqLzNHWwkWQQx89MZyRVXtaPs0dcRdGb2pqKUXCRqQ==", "engines": { "node": ">=8" }, @@ -25759,9 +25754,9 @@ } }, "@primer/behaviors": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@primer/behaviors/-/behaviors-1.1.0.tgz", - "integrity": "sha512-Ej2OUc3ZIFaR7WwIUqESO1DTzmpb7wc8xbTVRT9s52jZQDjN7g5iljoK3ocYZm+BIAcKn3MvcwB42hEk4Ga4xQ==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@primer/behaviors/-/behaviors-1.1.3.tgz", + "integrity": "sha512-WpCcjAkXG7Lv3ZbaCUgASWKHnCi/pmuSEiyTmHHb6f5xhwk1mliixNL5ZZHtDN6RCcT3VnXUsyek4GopG2lbZQ==" }, "@primer/css": { "version": "19.4.0", @@ -25769,13 +25764,6 @@ "integrity": "sha512-Ptg9eTw140v97M+jdxP8vjC4BsiWjAvhMA0qjPx1rsH9oHfIrAqLEBDXkfMl5wYZrEflatyHAbxa4zos5DJttA==", "requires": { "@primer/primitives": "^7.4.0" - }, - "dependencies": { - "@primer/primitives": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.4.0.tgz", - "integrity": "sha512-gD6yHXN7YKox/bdUNgxhoSS/WXZVaORK1r4dOAyTrdoPrLV/ucIfRInPyVcTF+Mqr0zcTFJtiMtuA5Y8CSyOEg==" - } } }, "@primer/octicons": { @@ -25793,39 +25781,39 @@ "requires": {} }, "@primer/primitives": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.1.1.tgz", - "integrity": "sha512-+Gwo89YK1OFi6oubTlah/zPxxzMNaMLy+inECAYI646KIFdzzhAsKWb3z5tSOu5Ff7no4isRV64rWfMSKLZclw==" + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@primer/primitives/-/primitives-7.8.4.tgz", + "integrity": "sha512-cXmnhKBvrwbP3FYR9oxNYx3s8y2svsQLbDNZuoGcsZJLQ6RD3HfQ9ZtXgbyTbTYTyfPvkyd0pkQLI7tRJSc5kg==" }, "@primer/react": { - "version": "34.7.1", - "resolved": "https://registry.npmjs.org/@primer/react/-/react-34.7.1.tgz", - "integrity": "sha512-9OLRo3N1/B/jqb7aJPY7xmtyKM8afZlmWLnEOmT8LOCmuwPiRXI+4GsJjaV9RPx3h8rUXBQwpaYZGDDj9+/OjA==", - "requires": { - "@primer/behaviors": "1.1.0", - "@primer/octicons-react": "16.1.1", - "@primer/primitives": "7.1.1", - "@radix-ui/react-polymorphic": "0.0.14", - "@react-aria/ssr": "3.1.0", - "@styled-system/css": "5.1.5", - "@styled-system/props": "5.1.5", - "@styled-system/theme-get": "5.1.2", - "@types/styled-components": "5.1.11", - "@types/styled-system": "5.1.12", - "@types/styled-system__css": "5.0.16", - "@types/styled-system__theme-get": "5.0.1", - "classnames": "2.3.1", - "color2k": "1.2.4", - "deepmerge": "4.2.2", - "focus-visible": "5.2.0", - "history": "5.0.0", - "styled-system": "5.1.5" + "version": "35.5.0", + "resolved": "https://registry.npmjs.org/@primer/react/-/react-35.5.0.tgz", + "integrity": "sha512-jqF3T1c/F0pCjfuGTRfB8QphEC6u9ZR+vao4MZDk1vQN9QiPCep07i6f6ijy9F7kNlhe/IGVz49tQaX5KDxM8w==", + "requires": { + "@primer/behaviors": "^1.1.1", + "@primer/octicons-react": "^17.3.0", + "@primer/primitives": "7.8.4", + "@radix-ui/react-polymorphic": "^0.0.14", + "@react-aria/ssr": "^3.1.0", + "@styled-system/css": "^5.1.5", + "@styled-system/props": "^5.1.5", + "@styled-system/theme-get": "^5.1.2", + "@types/styled-components": "^5.1.11", + "@types/styled-system": "^5.1.12", + "@types/styled-system__css": "^5.0.16", + "@types/styled-system__theme-get": "^5.0.1", + "classnames": "^2.3.1", + "color2k": "^1.2.4", + "deepmerge": "^4.2.2", + "focus-visible": "^5.2.0", + "history": "^5.0.0", + "styled-system": "^5.1.5" }, "dependencies": { "@primer/octicons-react": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@primer/octicons-react/-/octicons-react-16.1.1.tgz", - "integrity": "sha512-xCxQ5z23ol7yDuJs85Lc4ARzyoay+b3zOhAKkEMU7chk0xi2hT2OnRP23QUudNNDPTGozX268RGYLexUa6P4xw==", + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/@primer/octicons-react/-/octicons-react-17.4.0.tgz", + "integrity": "sha512-3h+/5CqwvQ9lUzlY+g25v6KoM5eVq1/3OjNslphKqiw/fqLzNHWwkWQQx89MZyRVXtaPs0dcRdGb2pqKUXCRqQ==", "requires": {} } } diff --git a/package.json b/package.json index 3fb4167f7cf7..0a26498ab6dc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@primer/css": "^19.4.0", "@primer/octicons": "17.0.0", "@primer/octicons-react": "17.0.0", - "@primer/react": "^34.7.1", + "@primer/react": "^35.5.0", "@react-aria/ssr": "^3.1.0", "accept-language-parser": "^1.5.0", "ajv": "^8.9.0",