Skip to content

Commit 5f68a07

Browse files
committed
chore: postinstall for dependabot template-oss PR
1 parent e46daf0 commit 5f68a07

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

.github/workflows/post-dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
run: |
4949
dependabot_dir="${{ steps.metadata.outputs.directory }}"
5050
if [[ "$dependabot_dir" == "/" ]]; then
51-
echo "::set-output name=workspace::-iwr"
51+
echo "workspace=-iwr" >> $GITHUB_OUTPUT
5252
else
5353
# strip leading slash from directory so it works as a
5454
# a path to the workspace flag
55-
echo "::set-output name=workspace::-w ${dependabot_dir#/}"
55+
echo "workspace=-w ${dependabot_dir#/}" >> $GITHUB_OUTPUT
5656
fi
5757
5858
- name: Apply Changes
@@ -61,7 +61,7 @@ jobs:
6161
run: |
6262
npm run template-oss-apply ${{ steps.flags.outputs.workspace }}
6363
if [[ `git status --porcelain` ]]; then
64-
echo "::set-output name=changes::true"
64+
echo "changes=true" >> $GITHUB_OUTPUT
6565
fi
6666
# This only sets the conventional commit prefix. This workflow can't reliably determine
6767
# what the breaking change is though. If a BREAKING CHANGE message is required then
@@ -71,7 +71,7 @@ jobs:
7171
else
7272
prefix='chore'
7373
fi
74-
echo "::set-output name=message::$prefix: postinstall for dependabot template-oss PR"
74+
echo "message=$prefix: postinstall for dependabot template-oss PR" >> $GITHUB_OUTPUT
7575
7676
# This step will fail if template-oss has made any workflow updates. It is impossible
7777
# for a workflow to update other workflows. In the case it does fail, we continue

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
run: |
181181
git commit --all --amend --no-edit || true
182182
git push --force-with-lease
183-
echo "::set-output name=sha::$(git rev-parse HEAD)"
183+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
184184
- name: Get Workflow Job
185185
uses: actions/github-script@v6
186186
if: steps.commit.outputs.sha
@@ -261,7 +261,7 @@ jobs:
261261
else
262262
result="success"
263263
fi
264-
echo "::set-output name=result::$result"
264+
echo "result=$result" >> $GITHUB_OUTPUT
265265
- name: Conclude Check
266266
uses: LouisBrunner/checks-action@v1.3.1
267267
if: needs.update.outputs.check-id && always()
@@ -368,15 +368,14 @@ jobs:
368368
- name: Get Needs Result
369369
id: needs-result
370370
run: |
371-
result=""
372371
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
373372
result="x"
374373
elif [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
375374
result="heavy_multiplication_x"
376375
else
377376
result="white_check_mark"
378377
fi
379-
echo "::set-output name=result::$result"
378+
echo "result=$result" >> $GITHUB_OUTPUT
380379
- name: Update Release PR Comment
381380
uses: actions/github-script@v6
382381
env:
@@ -397,7 +396,8 @@ jobs:
397396
if (updateComment) {
398397
console.log('Found comment to update:', JSON.stringify(updateComment, null, 2))
399398
let body = updateComment.body.replace(/Workflow run: :[a-z_]+:/, `Workflow run: :${RESULT}:`)
400-
if (RESULT === 'x') {
399+
const tagCodeowner = RESULT !== 'white_check_mark'
400+
if (tagCodeowner) {
401401
body += `\n\n:rotating_light:`
402402
body += ` @npm/cli-team: The post-release workflow failed for this release.`
403403
body += ` Manual steps may need to be taken after examining the workflow output`

SECURITY.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ GitHub takes the security of our software products and services seriously, inclu
44

55
If you believe you have found a security vulnerability in this GitHub-owned open source repository, you can report it to us in one of two ways.
66

7-
If the vulnerability you have found is *not* [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) or if you do not wish to be considered for a bounty reward, please report the issue to us directly using [private vulnerability reporting](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability).
7+
If the vulnerability you have found is *not* [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) or if you do not wish to be considered for a bounty reward, please report the issue to us directly through [opensource-security@github.com](mailto:opensource-security@github.com).
88

99
If the vulnerability you have found is [in scope for the GitHub Bug Bounty Program](https://bounty.github.com/#scope) and you would like for your finding to be considered for a bounty reward, please submit the vulnerability to us through [HackerOne](https://hackerone.com/github) in order to be eligible to receive a bounty award.
1010

1111
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
1212

1313
Thanks for helping make GitHub safe for everyone.
14-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
},
3939
"templateOSS": {
4040
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
41-
"version": "4.11.4"
41+
"version": "4.12.0"
4242
}
4343
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy