-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2ee865
commit 330c7c3
Showing
6 changed files
with
164 additions
and
7 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,59 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Action Tag Release | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
user: | ||
description: 'Optional GitHub username that is associated with the GitHub Personal Access Token (PAT)' | ||
type: string | ||
required: false | ||
default: '' | ||
secrets: | ||
access-token: | ||
description: 'GitHub Personal Access Token (PAT) if the default branch is protected and needs a specific access token to push tags to the branch' | ||
required: false | ||
|
||
jobs: | ||
tagrelease: | ||
name: Action Tag Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.access-token || github.token }} | ||
- name: Retrieve version | ||
run: | | ||
VERSION=$(git describe --tags --abbrev=0 --match="v[0-9]*.[0-9]*.[0-9]*" || echo "") | ||
if [ -z "$VERSION" ] | ||
then | ||
echo "Did not identify a tag using semantic versioning in the commit history" | ||
exit 0 | ||
fi | ||
MAJOR=${VERSION%%.*} | ||
MINOR=${VERSION%.*} | ||
echo "Push Tags $MAJOR and $MINOR for $VERSION" | ||
git config user.name "${{ inputs.user || github.actor }}" | ||
git config user.email "${{ inputs.user || github.actor }}@users.noreply.github.com" | ||
git switch --detach ${VERSION} | ||
git push origin :refs/tags/${MAJOR} | ||
git tag -fa "${MAJOR}" -m "${MAJOR}" | ||
git push origin --tags | ||
git push origin :refs/tags/${MINOR} | ||
git tag -fa "${MINOR}" -m "${MINOR}" | ||
git push origin --tags |
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 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
releasetag: | ||
name: Tag Release | ||
uses: ./.github/workflows/action-release-tag.yml | ||
secrets: | ||
access-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
with: | ||
user: PaulsAutomationBot |
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 |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
name: REUSE Compliance Check | ||
|
||
on: | ||
pull_request: | ||
workflow_call: | ||
|
||
jobs: | ||
|
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,21 @@ | ||
# | ||
# This source file is part of the Stanford Biodesign for Digital Health open-source project | ||
# | ||
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md) | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
reuse_action: | ||
name: REUSE Compliance Check | ||
uses: ./.github/workflows/reuse.yml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ SPDX-License-Identifier: MIT | |
|
||
# Security Policy | ||
|
||
Please report security vulnerabilities to the Stanford Biodesign for Digital Health team at [email protected]. | ||
Please report security vulnerabilities using the GitHub [privately reporting a security vulnerability](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/best-practices-for-writing-repository-security-advisories) functionality. | ||
We highly value your input and will get back to you as soon as possible. Please include steps to reproduce, context, and any further information that makes identifying and resolving the vulnerability as quickly as possible. | ||
|
||
See the [The CERT Guide to Coordinated Vulnerability Disclosure](https://vuls.cert.org/confluence/display/CVD/The+CERT+Guide+to+Coordinated+Vulnerability+Disclosure) for additional background information about the coordinated vulnerability disclosure process. |