generated from nhs-england-tools/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/modules/cloudfront-l…
…ogs/lambda/semver-6.3.1
- Loading branch information
Showing
77 changed files
with
1,566 additions
and
819 deletions.
There are no files selected for viewing
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: Check File Format | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check File Format | ||
shell: bash | ||
run: | | ||
export BRANCH_NAME=origin/${{ github.event.repository.default_branch }} | ||
./scripts/githooks/check-file-format.sh |
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,9 @@ | ||
name: Check Markdown Format | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check Markdown Format | ||
shell: bash | ||
run: | | ||
export BRANCH_NAME=origin/${{ github.event.repository.default_branch }} | ||
./scripts/githooks/check-markdown-format.sh |
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: Check Terraform Format | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Check Terraform Format | ||
shell: bash | ||
run: | | ||
export BRANCH_NAME=origin/${{ github.event.repository.default_branch }} | ||
./scripts/githooks/check-terraform-format.sh |
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: Count lines of code in this repository | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Count lines of code in this repository | ||
shell: bash | ||
run: | | ||
export FORMAT=default | ||
./scripts/cloc-repository.sh |
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,13 @@ | ||
name: Get Metadata | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get Metadata | ||
id: metadata | ||
shell: bash | ||
run: | | ||
datetime=$(date -u +'%Y-%m-%dT%H:%M:%S%z') | ||
echo "build_datetime=$datetime" >> $GITHUB_OUTPUT | ||
echo "build_timestamp=$(date --date=$datetime -u +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT | ||
echo "build_epoch=$(date --date=$datetime -u +'%s')" >> $GITHUB_OUTPUT | ||
echo "terraform_version=$(grep terraform .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT |
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,23 @@ | ||
name: Scan Dependencies | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Generate SBOM File | ||
shell: bash | ||
run: ./scripts/sbom-generator.sh | ||
|
||
- name: Upload SBOM Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dependency-scan | ||
path: ./sbom-spdx.json | ||
|
||
- name: Run CVE Scanner | ||
shell: bash | ||
run: ./scripts/cve-scanner.sh | ||
|
||
- name: Upload CVE Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dependency-scan | ||
path: ./cve-scan.json |
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: Scan Secrets | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Count lines of code in this repository | ||
shell: bash | ||
run: | | ||
export ALL_FILES=true | ||
./scripts/githooks/scan-secrets.sh |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.