Skip to content

Commit bb3831d

Browse files
Merge pull request newrelic#2775 from newrelic/release
Release 2026-27-01
2 parents dde90e9 + 5affdc9 commit bb3831d

Some content is hidden

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

51 files changed

+7653
-5628
lines changed

.github/actions/bootstrap/action.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,10 @@ runs:
66
- name: Setup node
77
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
88
with:
9-
node-version: 20
10-
11-
- name: Get yarn cache directory path
12-
shell: bash
13-
id: yarn-cache-dir-path
14-
working-directory: utils
15-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
16-
17-
- uses: actions/cache@v4
18-
id: yarn-cache
19-
with:
20-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-yarn-
9+
node-version: 22
10+
cache: 'npm'
11+
cache-dependency-path: utils/package-lock.json
2412

2513
- name: Install dependencies
2614
shell: bash
27-
run: cd utils && yarn install --frozen-lockfile
15+
run: cd utils && npm ci

.github/actions/build-validate-artifact/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ runs:
1111
- name: Add data source ids to schema
1212
shell: bash
1313
run: |
14-
cd utils && yarn add-datasource-ids
14+
cd utils && npm run add-datasource-ids
1515
1616
- name: Build & Validate Artifact
1717
shell: bash
1818
id: build-validate-artifact
1919
run: |
20-
cd utils && yarn build-validate-quickstart-artifact ${{ inputs.output-artifact && '--output-artifact' || '' }}
20+
cd utils && npm run build-validate-quickstart-artifact -- ${{ inputs.output-artifact && '--output-artifact' || '' }}
2121
2222
- name: Debugging output
2323
shell: bash

.github/workflows/pr-checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: PR Validation
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
validate:
811
name: Validate Artifact
@@ -29,4 +32,4 @@ jobs:
2932
uses: "./.github/actions/bootstrap"
3033
- name: Validate Quickstart IDs
3134
run: |
32-
cd utils && yarn validate-quickstart-ids
35+
cd utils && npm run validate-quickstart-ids

.github/workflows/pr-merged.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Update quickstarts
22

3+
permissions:
4+
contents: write
5+
pull-requests: read
6+
37
env:
48
THIRD_PARTY_GIT_AUTHOR_EMAIL: opensource+bot@newrelic.com
59
THIRD_PARTY_GIT_AUTHOR_NAME: nr-opensource-bot
@@ -34,7 +38,7 @@ jobs:
3438

3539
- name: Generate UUIDs for quickstarts
3640
id: generate-uuids
37-
run: cd utils && yarn generate-uuids
41+
run: cd utils && npm run generate-uuids
3842

3943
- name: Commit changes
4044
id: commit-changes

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Install OSS CLI
4141
run: |
42-
yarn global add @newrelic/newrelic-oss-cli
42+
npm install -g @newrelic/newrelic-oss-cli
4343
4444
- name: Generate Third Party Notices
4545
id: generate-notices

.github/workflows/repolinter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ name: Repolinter Action
88
# filtered in the "Test Default Branch" step.
99
on: [push, workflow_dispatch]
1010

11+
permissions:
12+
contents: read
13+
issues: write
14+
1115
jobs:
1216
repolint:
1317
name: Run Repolinter

.github/workflows/run_tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
paths:
99
- "utils/**"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
run-unit-tests:
1316
name: Unit tests
@@ -20,4 +23,4 @@ jobs:
2023
uses: "./.github/actions/bootstrap"
2124

2225
- name: Run tests
23-
run: cd utils && yarn test
26+
run: cd utils && npm test

.github/workflows/submit-gate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- release
1111
types: [closed]
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
upload-artifact:
1518
runs-on: ubuntu-latest

.github/workflows/validate_packs.yml

Lines changed: 60 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
contents: read
11+
statuses: write
12+
pull-requests: write
13+
914
env:
1015
COMMIT_SHA: ${{ github.event.workflow_run.head_commit.id }}
1116

@@ -14,16 +19,24 @@ jobs:
1419
name: Ensure quickstart ids are unique
1520
runs-on: ubuntu-latest
1621
steps:
22+
- name: Create temp directory
23+
run: mkdir -p ${{ runner.temp }}/artifacts/
24+
1725
- name: Download artifact
1826
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
1927
with:
2028
workflow: validation_gate.yml
2129
run_id: ${{ github.event.workflow_run.id }}
30+
path: ${{ runner.temp }}/artifacts/
2231

23-
- name: Get PR number
32+
- name: Get and validate PR number
2433
id: get_pr_number
2534
run: |
26-
export PR_NUMBER=$(cat artifact/pr_number.txt)
35+
PR_NUMBER=$(cat ${{ runner.temp }}/artifacts/artifact/pr_number.txt)
36+
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
37+
echo "Error: Invalid PR number"
38+
exit 1
39+
fi
2740
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
2841
2942
- name: Checkout repository
@@ -36,7 +49,7 @@ jobs:
3649

3750
- name: Check for unique names and ids
3851
id: validation
39-
run: cd utils && yarn check-quickstart-uniqueness
52+
run: cd utils && npm run check-quickstart-uniqueness
4053

4154
- name: Add commit status
4255
uses: "./.github/actions/add-commit-status"
@@ -48,16 +61,24 @@ jobs:
4861
name: Ensure images are valid
4962
runs-on: ubuntu-latest
5063
steps:
64+
- name: Create temp directory
65+
run: mkdir -p ${{ runner.temp }}/artifacts/
66+
5167
- name: Download artifact
5268
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
5369
with:
5470
workflow: validation_gate.yml
5571
run_id: ${{ github.event.workflow_run.id }}
72+
path: ${{ runner.temp }}/artifacts/
5673

57-
- name: Get PR number
74+
- name: Get and validate PR number
5875
id: get_pr_number
5976
run: |
60-
export PR_NUMBER=$(cat artifact/pr_number.txt)
77+
PR_NUMBER=$(cat ${{ runner.temp }}/artifacts/artifact/pr_number.txt)
78+
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
79+
echo "Error: Invalid PR number"
80+
exit 1
81+
fi
6182
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
6283
6384
- name: Checkout repository
@@ -70,7 +91,7 @@ jobs:
7091

7192
- name: Validate Images
7293
id: validation
73-
run: cd utils && yarn validate-images
94+
run: cd utils && npm run validate-images
7495

7596
- name: Add commit status
7697
uses: "./.github/actions/add-commit-status"
@@ -82,16 +103,24 @@ jobs:
82103
name: Ensure icons exist
83104
runs-on: ubuntu-latest
84105
steps:
106+
- name: Create temp directory
107+
run: mkdir -p ${{ runner.temp }}/artifacts/
108+
85109
- name: Download artifact
86110
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
87111
with:
88112
workflow: validation_gate.yml
89113
run_id: ${{ github.event.workflow_run.id }}
114+
path: ${{ runner.temp }}/artifacts/
90115

91-
- name: Get PR number
116+
- name: Get and validate PR number
92117
id: get_pr_number
93118
run: |
94-
export PR_NUMBER=$(cat artifact/pr_number.txt)
119+
PR_NUMBER=$(cat ${{ runner.temp }}/artifacts/artifact/pr_number.txt)
120+
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
121+
echo "Error: Invalid PR number"
122+
exit 1
123+
fi
95124
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
96125
97126
- name: Checkout repository
@@ -104,7 +133,7 @@ jobs:
104133

105134
- name: Validate Icons
106135
id: validation
107-
run: cd utils && yarn validate-icons
136+
run: cd utils && npm run validate-icons
108137

109138
- name: Add commit status
110139
uses: "./.github/actions/add-commit-status"
@@ -116,16 +145,24 @@ jobs:
116145
name: Ensure quickstart dashboard names are unique
117146
runs-on: ubuntu-latest
118147
steps:
148+
- name: Create temp directory
149+
run: mkdir -p ${{ runner.temp }}/artifacts/
150+
119151
- name: Download artifact
120152
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
121153
with:
122154
workflow: validation_gate.yml
123155
run_id: ${{ github.event.workflow_run.id }}
156+
path: ${{ runner.temp }}/artifacts/
124157

125-
- name: Get PR number
158+
- name: Get and validate PR number
126159
id: get_pr_number
127160
run: |
128-
export PR_NUMBER=$(cat artifact/pr_number.txt)
161+
PR_NUMBER=$(cat ${{ runner.temp }}/artifacts/artifact/pr_number.txt)
162+
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
163+
echo "Error: Invalid PR number"
164+
exit 1
165+
fi
129166
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
130167
131168
- name: Checkout repository
@@ -138,7 +175,7 @@ jobs:
138175

139176
- name: Check for unique dashboard names
140177
id: validation
141-
run: cd utils && yarn check-dashboard-name-uniqueness
178+
run: cd utils && npm run check-dashboard-name-uniqueness
142179

143180
- name: Add commit status
144181
uses: "./.github/actions/add-commit-status"
@@ -149,16 +186,24 @@ jobs:
149186
dashboard-helper:
150187
runs-on: ubuntu-latest
151188
steps:
189+
- name: Create temp directory
190+
run: mkdir -p ${{ runner.temp }}/artifacts/
191+
152192
- name: Download artifact
153193
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
154194
with:
155195
workflow: validation_gate.yml
156196
run_id: ${{ github.event.workflow_run.id }}
197+
path: ${{ runner.temp }}/artifacts/
157198

158-
- name: Get PR number
199+
- name: Get and validate PR number
159200
id: get_pr_number
160201
run: |
161-
export PR_NUMBER=$(cat artifact/pr_number.txt)
202+
PR_NUMBER=$(cat ${{ runner.temp }}/artifacts/artifact/pr_number.txt)
203+
if ! [[ "$PR_NUMBER" =~ ^[0-9]+$ ]]; then
204+
echo "Error: Invalid PR number"
205+
exit 1
206+
fi
162207
echo "pr-number=$PR_NUMBER" >> $GITHUB_ENV
163208
164209
- name: Checkout repository
@@ -176,7 +221,7 @@ jobs:
176221
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177222
run: |
178223
URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/$PR_NUMBER/files"
179-
cd utils && yarn dashboard-helper $URL
224+
cd utils && npm run dashboard-helper -- $URL
180225
- name: Comment
181226
if: steps.helper.outputs.comment != ''
182227
env:

.github/workflows/validation_gate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ name: Validation Gate
77
on:
88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
upload-artifact:
1215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)