Skip to content

Commit b01b65f

Browse files
authored
Update to actively maintained js yaml library (open-telemetry#2236)
1 parent f827041 commit b01b65f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/assign-issue-owners.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121

22-
- name: Install js-yaml
23-
run: npm install js-yaml@4.1.0
22+
- name: Install yaml
23+
run: npm install yaml@2.8.0
2424

2525
- name: Parse component label and assign owners
2626
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2727
with:
2828
script: |
2929
const fs = require('fs');
30-
const yaml = require('js-yaml');
30+
const { parse } = require('yaml');
3131
3232
// Extract component name from label
3333
const labelName = context.payload.label.name;
@@ -42,7 +42,7 @@ jobs:
4242
4343
// Read and parse component_owners.yml
4444
const yamlContent = fs.readFileSync('.github/component_owners.yml', 'utf8');
45-
const data = yaml.load(yamlContent);
45+
const data = parse(yamlContent);
4646
4747
if (!data || !data.components) {
4848
core.setFailed('Invalid component_owners.yml structure');

0 commit comments

Comments
 (0)