Skip to content

Commit 02715f0

Browse files
authored
Merge branch 'main' into enforce-80-percent-coverage-ci
Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com>
2 parents a838060 + 9679618 commit 02715f0

File tree

78 files changed

+3090
-1545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3090
-1545
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
egress-policy: audit
3030

31-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
31+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3232
with:
3333
fetch-depth: 0
3434

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
egress-policy: audit
5757

5858
- name: Checkout repository
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
59+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
6060

6161
# Initializes the CodeQL tools for scanning.
6262
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
63+
uses: github/codeql-action/init@df559355d593797519d70b90fc8edd5db049e7a2 # v3
6464
with:
6565
languages: ${{ matrix.language }}
6666
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -74,7 +74,7 @@ jobs:
7474
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
7575
# If this step fails, then you should remove it and run the build manually (see below)
7676
- name: Autobuild
77-
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
77+
uses: github/codeql-action/autobuild@df559355d593797519d70b90fc8edd5db049e7a2 # v3
7878

7979
# ℹ️ Command-line programs to run using the OS shell.
8080
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -87,6 +87,6 @@ jobs:
8787
# ./location_of_script_within_repo/buildscript.sh
8888

8989
- name: Perform CodeQL Analysis
90-
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3
90+
uses: github/codeql-action/analyze@df559355d593797519d70b90fc8edd5db049e7a2 # v3
9191
with:
9292
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
egress-policy: audit
1616

1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1919
- name: Dependency Review
2020
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4
2121
with:

.github/workflows/experimental-inventory-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
egress-policy: audit
3030

31-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
31+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
3232
with:
3333
fetch-depth: 0
3434

.github/workflows/experimental-inventory-cli-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
egress-policy: audit
2020

21-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2222

2323
# Setup .npmrc file to publish to npm
2424
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4

.github/workflows/experimental-inventory-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
egress-policy: audit
2020

21-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2222

2323
# Setup .npmrc file to publish to npm
2424
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
node-version: ${{ env.NODE_VERSION }}
2525

2626
- name: Code Checkout
27-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2828
with:
2929
fetch-depth: 0
3030

.github/workflows/npm.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
egress-policy: audit
1616

17-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
1818
# Setup .npmrc file to publish to npm
1919
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2020
with:
@@ -24,6 +24,16 @@ jobs:
2424
- run: npm run build
2525
env:
2626
IS_PUBLISHING: 'YES'
27-
- run: npm publish --access=public
27+
28+
- name: Check if pre-release and publish to NPM
29+
run: |
30+
VERSION=$(node -p "require('./package.json').version")
31+
if [[ "$VERSION" == *"-"* ]]; then
32+
echo "Publishing pre-release: $VERSION"
33+
npm publish --access=public --tag rc
34+
else
35+
echo "Publishing stable release: $VERSION"
36+
npm publish --access=public
37+
fi
2838
env:
2939
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
egress-policy: audit
2828

29-
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
29+
- uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 # v5
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
with:

.github/workflows/sample-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
egress-policy: audit
1919

20-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
2121
# Setup .npmrc file to publish to npm
2222
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2323
with:

0 commit comments

Comments
 (0)