From 71e5c8088203dd43140b80c2cb8114427fefb6e0 Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Tue, 17 Sep 2024 09:20:15 +1000 Subject: [PATCH] update to remove unused inputs --- build/action.yml | 5 ----- case/action.yml | 7 ------- dependency-review/action.yml | 5 ----- lint-markdown/action.yml | 3 --- lint/action.yml | 5 ----- mm-security-scanner/action.yml | 3 --- spelling/action.yml | 8 +------- trivy/action.yml | 8 ++------ 8 files changed, 3 insertions(+), 41 deletions(-) diff --git a/build/action.yml b/build/action.yml index 8626064..b96e5ec 100644 --- a/build/action.yml +++ b/build/action.yml @@ -3,11 +3,6 @@ name: 'build' description: 'Composite action to build the docs' -inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true - runs: using: "composite" steps: diff --git a/case/action.yml b/case/action.yml index 1d64d81..30d613e 100644 --- a/case/action.yml +++ b/case/action.yml @@ -8,9 +8,6 @@ inputs: description: "default directory path from project root" required: false default: docs - GITHUB_TOKEN: - description: "token to run with correct permissions" - required: true SKIP_TEST: description: "set to true to skip case test" required: false @@ -44,7 +41,3 @@ runs: echo "Wrong example: My-Folder/MyFile-NAME.old.md" exit 1 fi - env: - # Required, set by GitHub actions automatically: - # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret - GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} diff --git a/dependency-review/action.yml b/dependency-review/action.yml index f0f4a59..63dff2e 100644 --- a/dependency-review/action.yml +++ b/dependency-review/action.yml @@ -2,11 +2,6 @@ --- name: 'Dependency Review' -inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true - runs: using: "composite" steps: diff --git a/lint-markdown/action.yml b/lint-markdown/action.yml index 9ca94af..b593121 100644 --- a/lint-markdown/action.yml +++ b/lint-markdown/action.yml @@ -4,9 +4,6 @@ name: 'lint: markdown' description: 'Composite action to lint markdown' inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true CONFIG_FILE: description: 'markdownlint config file' required: false diff --git a/lint/action.yml b/lint/action.yml index 20934ec..e7d1b12 100644 --- a/lint/action.yml +++ b/lint/action.yml @@ -3,11 +3,6 @@ name: 'test: lint all code' description: 'Composite action to lint all kind of files' -inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true - runs: using: "composite" steps: diff --git a/mm-security-scanner/action.yml b/mm-security-scanner/action.yml index 6aea4e5..f374af0 100644 --- a/mm-security-scanner/action.yml +++ b/mm-security-scanner/action.yml @@ -4,9 +4,6 @@ name: 'MetaMask Security Code Scanner' description: 'MetaMask Security Code Scanner' inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true SECURITY_SCAN_METRICS_TOKEN: description: 'Metrics token' required: true diff --git a/spelling/action.yml b/spelling/action.yml index fb6a54e..3e55d47 100644 --- a/spelling/action.yml +++ b/spelling/action.yml @@ -4,9 +4,6 @@ name: 'test: spelling' description: 'Composite action to test spelling' inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true FILEPATHS: description: 'Filepaths to look at, specified as a comma separated string ie "docs,blog,etc"' required: false @@ -29,9 +26,6 @@ runs: vale_flags: "--config .docs-gha/spelling/.vale.ini --glob={*.md,*.mdx}" # fail_on_error: true reporter: github-pr-check - env: - # Required, set by GitHub actions automatically: - # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret - GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }} + \ No newline at end of file diff --git a/trivy/action.yml b/trivy/action.yml index 0b38dd0..4fe322c 100644 --- a/trivy/action.yml +++ b/trivy/action.yml @@ -3,11 +3,6 @@ name: 'Trivy' description: 'Composite action to run trivy on the npm package.json' -inputs: - GITHUB_TOKEN: - description: 'Github secret Token' - required: true - runs: using: "composite" steps: @@ -30,4 +25,5 @@ runs: - name: Upload Trivy scan results to GitHub Security tab uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: 'trivy-results.sarif' \ No newline at end of file + sarif_file: 'trivy-results.sarif' + \ No newline at end of file