From 853aefde6b73c8af93472bb063bf72db4c1e0fb3 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Fri, 11 Jul 2025 13:25:44 -0400 Subject: [PATCH] Update workflows to match templates --- .checkov.yaml | 7 ------- .github/workflows/check-dist.yml | 4 ---- .github/workflows/codeql-analysis.yml | 28 ++++++--------------------- .github/workflows/linter.yml | 4 ---- action.yml | 15 +++++++++----- 5 files changed, 16 insertions(+), 42 deletions(-) delete mode 100644 .checkov.yaml diff --git a/.checkov.yaml b/.checkov.yaml deleted file mode 100644 index 096241a..0000000 --- a/.checkov.yaml +++ /dev/null @@ -1,7 +0,0 @@ -quiet: true -skip-check: - - CKV_GHA_7 - # Ensure that HEALTHCHECK instructions have been added to container images - - CKV_DOCKER_2 - # Ensure that a user for the container has been created - - CKV_DOCKER_3 diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 77da9ee..5c4bd8b 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -26,12 +26,10 @@ jobs: runs-on: ubuntu-latest steps: - # Checkout the repository. - name: Checkout id: checkout uses: actions/checkout@v4 - # Setup Node.js using the version specified in `.node-version`. - name: Setup Node.js id: setup-node uses: actions/setup-node@v4 @@ -39,12 +37,10 @@ jobs: node-version-file: .node-version cache: npm - # Install dependencies using `npm ci`. - name: Install Dependencies id: install run: npm ci - # Build the `dist/` directory. - name: Build dist/ Directory id: build run: npm run bundle diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index cf97a32..21ea886 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,10 +1,10 @@ name: CodeQL on: - push: + pull_request: branches: - main - pull_request: + push: branches: - main schedule: @@ -12,6 +12,7 @@ on: permissions: actions: read + checks: write contents: read security-events: write @@ -24,42 +25,25 @@ jobs: fail-fast: false matrix: language: - - TypeScript + - javascript steps: - name: Checkout id: checkout uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL id: initialize uses: github/codeql-action/init@v3 with: + config-file: .github/codeql/codeql-config.yml languages: ${{ matrix.language }} - config-file: ./.github/codeql/codeql-config.yml - # 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. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + source-root: src - # 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 id: autobuild uses: github/codeql-action/autobuild@v3 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - name: Perform CodeQL Analysis id: analyze uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 86ad21b..ef2b507 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -24,14 +24,12 @@ jobs: runs-on: ubuntu-latest steps: - # Checkout the repository. - name: Checkout id: checkout uses: actions/checkout@v4 with: fetch-depth: 0 - # Setup Node.js using the version specified in `.node-version`. - name: Setup Node.js id: setup-node uses: actions/setup-node@v4 @@ -39,12 +37,10 @@ jobs: node-version-file: .node-version cache: npm - # Install dependencies using `npm ci`. - name: Install Dependencies id: install run: npm ci - # Lint the codebase using the `super-linter/super-linter` action. - name: Lint Codebase id: super-linter uses: super-linter/super-linter/slim@v7 diff --git a/action.yml b/action.yml index 3735209..5c0ba01 100644 --- a/action.yml +++ b/action.yml @@ -1,18 +1,23 @@ -name: 'The name of your action here' -description: 'Provide a description here' -author: 'Your name or organization here' +name: The name of your action here +description: Provide a description here +author: Your name or organization here + +# Add your action's branding here. This will appear on the GitHub Marketplace. +branding: + icon: heart + color: red # Define your inputs here. inputs: milliseconds: - description: 'Your input description here' + description: Your input description here required: true default: '1000' # Define your outputs here. outputs: time: - description: 'Your output description here' + description: Your output description here runs: using: docker