-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump github/codeql-action from 2 to 3 (#110)
* Bump github/codeql-action from 2 to 3 Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@v2...v3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump gitleaks/gitleaks from 8.18.0 to 8.18.1 * Bump fabasoad/pre-commit-snyk from 0.4.0 to 0.5.0 * Bump igorshubovych/markdownlint-cli from 0.37.0 to 0.38.0 * Bump igorshubovych/markdownlint-cli from 0.37.0 to 0.38.0 * Bump igorshubovych/markdownlint-cli from 0.37.0 to 0.38.0 * Bump igorshubovych/markdownlint-cli from 0.37.0 to 0.38.0 * Rollback changes * Rollback changes * Test 1 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene <[email protected]>
- Loading branch information
1 parent
19e3a52
commit acc574e
Showing
21 changed files
with
3,033 additions
and
4,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
name: Linting | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: {} | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
eslint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.10.0" | ||
- name: Cache yarn dependencies | ||
id: yarn-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.yarn/cache | ||
node_modules | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/.yarnrc.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Compile | ||
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }} | ||
run: yarn install | ||
- name: Run ESLint | ||
uses: sibiraj-s/action-eslint@v3 | ||
with: | ||
all-files: "true" | ||
ignore-patterns: | | ||
.github | ||
.yarn | ||
coverage | ||
dist | ||
node_modules | ||
eslint-args: "-o eslint-results.sarif -f ${{ github.workspace }}/node_modules/@microsoft/eslint-formatter-sarif/sarif.js" | ||
extensions: "js,jsx,ts,tsx" | ||
annotations: true | ||
- name: Upload to GHAS | ||
if: always() | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
category: "eslint" | ||
sarif_file: "eslint-results.sarif" | ||
pre-commit: | ||
name: Pre-commit | ||
uses: fabasoad/reusable-workflows/.github/workflows/wf-pre-commit.yml@main | ||
with: | ||
skip-hooks: "audit, build, eslint, test, snyk-test" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,59 @@ | ||
--- | ||
name: Security | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: {} | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: sh | ||
|
||
jobs: | ||
codeql: | ||
name: CodeQL | ||
code-scanning: | ||
name: Code scanning | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ['javascript'] | ||
steps: | ||
- name: Checkout repository | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
languages: "javascript" | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
id: codeql-analysis | ||
uses: github/codeql-action/analyze@v3 | ||
- name: Upload to GHAS | ||
if: always() | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
category: "code-scanning" | ||
sarif_file: "${{ steps.codeql-analysis.outputs.sarif-output }}" | ||
yarn-audit: | ||
name: Yarn audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Yarn audit | ||
run: yarn npm audit --all | ||
directory-scanning: | ||
name: Directory scanning | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
- name: Scan current project | ||
id: scan-directory | ||
uses: anchore/scan-action@v3 | ||
with: | ||
by-cve: "true" | ||
path: "." | ||
- name: Upload to GHAS | ||
if: always() | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
category: "directory-scanning" | ||
sarif_file: "${{ steps.scan-directory.outputs.sarif }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.yarn/releases/yarn-4.0.2.cjs:aws-access-token:149 | ||
.yarn/releases/yarn-4.0.2.cjs:generic-api-key:567 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.