-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 ASL-4247: Publish to GitHub repo instead of private HomeOffice repo. (
#12) * ASL-4247: Add Dependabot * ASL-4247: Add Codeql * ASL-4247: Add sas test workflow * ASL-4247: Publish to GitHub repo to avoid private HomeOffice repo. This is a public repo so there is no need to publish this to the private Artifactory repo. This allows us to simplify CI pipelines and let developers access with credentials they already have. * ASL-4247 - Corrected env var reference in .npmrc --------- Co-authored-by: Tom Rowsell <[email protected]>
- Loading branch information
1 parent
951ed61
commit 1b6b40b
Showing
9 changed files
with
114 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "⬆️ " | ||
pull-request-branch-name: | ||
separator: "-" | ||
reviewers: | ||
- "UKHomeOffice/asl-devs" | ||
labels: | ||
- "skip-release" | ||
- "dependencies" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "⬆️ " | ||
pull-request-branch-name: | ||
separator: "-" | ||
reviewers: | ||
- "UKHomeOffice/asl-devs" | ||
labels: | ||
- "patch" | ||
- "dependencies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "CodeQL Scan" | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '45 12 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'Publish - npm' | ||
on: | ||
pull_request: | ||
types: [ closed ] | ||
|
||
jobs: | ||
publish: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/publish-npm.yml@v1 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: 'Increment Version - npm' | ||
on: | ||
pull_request: | ||
types: [ labeled, unlabeled, opened, reopened, synchronize ] | ||
|
||
jobs: | ||
version: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/semver-check-increment-npm.yml@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'Test' | ||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
|
||
jobs: | ||
test: | ||
uses: UKHomeOffice/sas-github-workflows/.github/workflows/test-npm.yml@v1 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
@asl:registry = https://artifactory.digital.homeoffice.gov.uk/artifactory/api/npm/npm-virtual/ | ||
|
||
//artifactory.digital.homeoffice.gov.uk/artifactory/api/npm/npm-virtual/:username=${NPM_AUTH_USERNAME} | ||
//artifactory.digital.homeoffice.gov.uk/artifactory/api/npm/npm-virtual/:_password=${NPM_AUTH_TOKEN} | ||
//artifactory.digital.homeoffice.gov.uk/artifactory/api/npm/npm-virtual/:email=[email protected] | ||
//artifactory.digital.homeoffice.gov.uk/artifactory/api/npm/npm-virtual/:always-auth=true | ||
@ukhomeoffice:registry=https://npm.pkg.github.com | ||
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters