Merge pull request #864 from actions/dependabot/github_actions/super-linter/super-linter-6

Bump super-linter/super-linter from 5 to 6
This commit is contained in:
Nick Alteen 2024-02-22 09:50:25 -05:00 committed by GitHub
commit 48e84f10c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 17 deletions

View File

@ -10,10 +10,12 @@
name: Check Transpiled JavaScript name: Check Transpiled JavaScript
on: on:
pull_request:
branches:
- main
push: push:
branches: branches:
- main - main
pull_request:
permissions: permissions:
contents: read contents: read

View File

@ -2,6 +2,8 @@ name: Continuous Integration
on: on:
pull_request: pull_request:
branches:
- main
push: push:
branches: branches:
- main - main

View File

@ -1,26 +1,26 @@
name: CodeQL name: CodeQL
on: on:
push: pull_request:
branches: branches:
- main - main
pull_request: push:
branches: branches:
- main - main
schedule: schedule:
- cron: '31 7 * * 3' - cron: '31 7 * * 3'
permissions:
actions: read
checks: write
contents: read
security-events: write
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
actions: read
checks: write
contents: read
security-events: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View File

@ -2,6 +2,8 @@ name: Lint Codebase
on: on:
pull_request: pull_request:
branches:
- main
push: push:
branches: branches:
- main - main
@ -20,6 +22,8 @@ jobs:
- name: Checkout - name: Checkout
id: checkout id: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js - name: Setup Node.js
id: setup-node id: setup-node
@ -34,7 +38,7 @@ jobs:
- name: Lint Codebase - name: Lint Codebase
id: super-linter id: super-linter
uses: super-linter/super-linter/slim@v5 uses: super-linter/super-linter/slim@v6
env: env:
DEFAULT_BRANCH: main DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/* FILTER_REGEX_EXCLUDE: dist/**/*

View File

@ -28,9 +28,9 @@ BLUE='\033[0;34m'
latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)") latest_tag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
if [[ -z "$latest_tag" ]]; then if [[ -z "$latest_tag" ]]; then
# There are no existing release tags # There are no existing release tags
echo -e "No tags found (yet) - Continue to create and push your first tag" echo -e "No tags found (yet) - Continue to create and push your first tag"
latest_tag="[unknown]" latest_tag="[unknown]"
fi fi
# Display the latest release tag # 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 # Validate the new release tag
tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$' tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$'
if echo "$new_tag" | grep -q -E "$tag_regex"; then 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 else
# Release tag is not `vX.X.X` format # 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)" echo -e "Tag: ${BLUE}$new_tag${OFF} is ${RED}not valid${OFF} (must be in vX.X.X format)"
exit 1 exit 1
fi fi
# Tag the new release # Tag the new release