forked from mongodb/mongo-ruby-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RUBY-3357 SSDLC Requirements (mongodb#2880)
* add more tasks to the release workflow also, add a cleanup workflow for use while testing * workflows don't have descriptions * inputs are specified on the trigger, not the workflow * skip the SBOM generation until we can figure it out * use bson-ruby asset group, for testing this is temporary until silk is able to grab the correct sbom lite from the mongo-ruby-driver repo * put code scan results in S3_ASSETS and for testing, remove dry-run from s3 upload, to make sure it works * restore the correct silk asset group * refactor to try the new ruby actions in drivers-github-tools * remove stray quotation mark * use the canonical version of the ruby actions * Indicate `dry_run` to be of type boolean This is so it gets rendered as a checkbox. We'll default it to `true` to avoid accidental releases.
- Loading branch information
Showing
3 changed files
with
76 additions
and
83 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,44 @@ | ||
name: "Dry-Run Cleanup" | ||
run-name: "Dry Run Cleanup for ${{ github.ref }}" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
confirm: | ||
description: Indicate whether you want this workflow to run (must be "true") | ||
required: true | ||
type: string | ||
tag: | ||
description: The name of the tag (and release) to clean up | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
release: | ||
name: "Dry-Run Cleanup" | ||
environment: release | ||
runs-on: 'ubuntu-latest' | ||
if: ${{ inputs.confirm == 'true' }} | ||
|
||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
|
||
# required to fetch internal or private CodeQL packs | ||
packages: read | ||
|
||
# only required for workflows in private repositories | ||
actions: read | ||
contents: write | ||
|
||
# required by the mongodb-labs/drivers-github-tools/setup@v2 step | ||
# also required by `rubygems/release-gem` | ||
id-token: write | ||
|
||
steps: | ||
- name: "Run the cleanup action" | ||
uses: mongodb-labs/drivers-github-tools/ruby/cleanup@v2 | ||
with: | ||
app_id: ${{ vars.APP_ID }} | ||
app_private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
tag: ${{ inputs.tag }} |
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