Skip to content

Commit

Permalink
ci: setup the auto release with correct setup
Browse files Browse the repository at this point in the history
Labels and tokens are now correct.
  • Loading branch information
SimeonC committed Aug 20, 2021
1 parent bdecc55 commit 5f2e8f6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 876 deletions.
1 change: 0 additions & 1 deletion .autorc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
}
}
],
"conventional-commits",
"first-time-contributor",
"released",
[
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
steps:
- uses: agilepathway/[email protected]
with:
one_of: major,minor,patch,internal
one_of: major,minor,patch,skip-release,internal,documentation,tests,dependencies,performance
none_of: invalid,wontfix,duplicate,question
repo_token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Auto Release

on:
workflow_dispatch:
# this allows us to manually run the release on other branches for canary and pre-releases
push:
branches:
- main
Expand All @@ -14,8 +12,13 @@ jobs:
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Prepare repository
run: git fetch --unshallow --prune --tags

- name: Unset header
# checkout@v2 adds a header that makes branch protection report errors ):
run: git config --local --unset http.https://github.com/.extraheader

- name: Read .nvmrc
id: nvm
Expand All @@ -35,7 +38,7 @@ jobs:

- name: Create Release ✨
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: npx auto shipit
18 changes: 18 additions & 0 deletions auditjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@
"reference": "https://ossindex.sonatype.org/vulnerability/92bbcbaf-097a-43f9-855e-2052e38930db?component-type=npm&component-name=ssri&utm_source=auditjs&utm_medium=integration&utm_content=4.0.28"
}
]
},
{
"coordinates": "pkg:npm/[email protected]",
"description": "Extract the non-magic parent path from a glob string.",
"reference": "https://ossindex.sonatype.org/component/pkg:npm/[email protected]?utm_source=auditjs&utm_medium=integration&utm_content=4.0.28",
"vulnerabilities": [
{
"id": "64cd5f21-8af4-4eae-ac7d-a53241ea693a",
"title": "CWE-400: Uncontrolled Resource Consumption ('Resource Exhaustion')",
"description": "The software does not properly restrict the size or amount of resources that are requested or influenced by an actor, which can be used to consume more resources than intended.",
"cvssScore": 7.5,
"cvssVector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"reference": "https://ossindex.sonatype.org/vulnerability/64cd5f21-8af4-4eae-ac7d-a53241ea693a?component-type=npm&component-name=glob-parent&utm_source=auditjs&utm_medium=integration&utm_content=4.0.28"
}
]
}
],
"ignore": [
Expand All @@ -94,6 +109,9 @@
},
{
"id": "92bbcbaf-097a-43f9-855e-2052e38930db"
},
{
"id": "64cd5f21-8af4-4eae-ac7d-a53241ea693a"
}
]
}
Loading

0 comments on commit 5f2e8f6

Please sign in to comment.