From d025e14228e1420d490d9f427b1795ee800c9d0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 03:57:36 +0000 Subject: [PATCH 1/4] Bump super-linter/super-linter from 5 to 6 Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter) from 5 to 6. - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](https://github.com/super-linter/super-linter/compare/v5...v6) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index dafff7b..20d0f0c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -34,7 +34,7 @@ jobs: - name: Lint Codebase id: super-linter - uses: super-linter/super-linter/slim@v5 + uses: super-linter/super-linter/slim@v6 env: DEFAULT_BRANCH: main FILTER_REGEX_EXCLUDE: dist/**/* From b5dab93db954dcbd72de5ae2911332f85bfa0d84 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 09:42:41 -0500 Subject: [PATCH 2/4] Add fetch depth --- .github/workflows/linter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 20d0f0c..428ca1b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,6 +20,8 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Node.js id: setup-node From 3ae7b742c16a4d14942e6b94a5e7ec4e7a168e0f Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 09:44:31 -0500 Subject: [PATCH 3/4] Fix actions linting errors --- .github/workflows/check-dist.yml | 4 +++- .github/workflows/ci.yml | 2 ++ .github/workflows/codeql-analysis.yml | 16 ++++++++-------- .github/workflows/linter.yml | 2 ++ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 5798200..8857945 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -10,10 +10,12 @@ name: Check Transpiled JavaScript on: + pull_request: + branches: + - main push: branches: - main - pull_request: permissions: contents: read diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbc263b..c6d2861 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: Continuous Integration on: pull_request: + branches: + - main push: branches: - main diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6ad7cb6..5f8e060 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,26 +1,26 @@ name: CodeQL on: - push: + pull_request: branches: - main - pull_request: + push: branches: - main schedule: - cron: '31 7 * * 3' +permissions: + actions: read + checks: write + contents: read + security-events: write + jobs: analyze: name: Analyze runs-on: ubuntu-latest - permissions: - actions: read - checks: write - contents: read - security-events: write - strategy: fail-fast: false matrix: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 428ca1b..7b72f4b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,6 +2,8 @@ name: Lint Codebase on: pull_request: + branches: + - main push: branches: - main From b15f546a0577778a765c0e5c9d1e6b99d54136a4 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 09:47:59 -0500 Subject: [PATCH 4/4] Fix shfmt errors --- script/release | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script/release b/script/release index d67bfb3..1ae8d07 100755 --- a/script/release +++ b/script/release @@ -28,9 +28,9 @@ BLUE='\033[0;34m' latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") if [[ -z "$latest_tag" ]]; then - # There are no existing release tags - echo -e "No tags found (yet) - Continue to create and push your first tag" - latest_tag="[unknown]" + # There are no existing release tags + echo -e "No tags found (yet) - Continue to create and push your first tag" + latest_tag="[unknown]" fi # Display the latest release tag @@ -42,11 +42,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag # Validate the new release tag tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$' if echo "$new_tag" | grep -q -E "$tag_regex"; then - echo -e "Tag: ${BLUE}$new_tag${OFF} is valid" + echo -e "Tag: ${BLUE}$new_tag${OFF} is valid" else - # Release tag is not `vX.X.X` format - echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)" - exit 1 + # Release tag is not `vX.X.X` format + echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)" + exit 1 fi # Tag the new release