-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DC-698] Upgrade from workflow-dispatch
to workflow-call
#170
base: main
Are you sure you want to change the base?
Conversation
workflow-dispatch
to workflow-call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments. I wish it was easier to test out changes to the GitHub workflows.
Can you check and see if other GitHub actions can be updated too? I know broadinstitute/action-slack
was updated, not sure about other actions.
description: 'environment to run test in' | ||
required: true | ||
options: | ||
- staging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was used by the GitHub action UI to show the possible values, to see what I mean go to https://github.com/DataBiosphere/terra-data-catalog/actions/workflows/integration-tests.yml and select Run Workflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choice seemed to not be an option for workflow_call - maybe I was misunderstanding the API docs though and there's another way to specify it?
with: | ||
workflow: Trivy | ||
token: ${{ secrets.BROADBOT_TOKEN }} | ||
uses: ./.github/workflows/trivy.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the point of running trivy as its own workflow was so that its failure didn't fail the build, because all trivy failures we've seen so far were issues with the base image and out of our control.
If it's run this way, will it fail the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is run as a separate workflow still.
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
on: | ||
workflow_call: | ||
secrets: | ||
token: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is token
, shouldn't
GITHUB_TOKEN: ${{ secrets.BROADBOT_TOKEN }}
be
GITHUB_TOKEN: ${{ secrets.token }}
No description provided.