Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

s-rubenstein
Copy link
Contributor

No description provided.

@s-rubenstein s-rubenstein marked this pull request as ready for review August 4, 2023 18:01
.github/workflows/integration-tests.yml Show resolved Hide resolved
.github/workflows/integration-tests.yml Outdated Show resolved Hide resolved
.github/workflows/tag.yml Outdated Show resolved Hide resolved
@s-rubenstein s-rubenstein changed the title Test workflows [DC-698] Upgrade from workflow-dispatch to workflow-call Aug 4, 2023
Copy link
Member

@pshapiro4broad pshapiro4broad left a 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
Copy link
Member

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

Copy link
Contributor Author

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?

.github/workflows/build-and-test.yml Outdated Show resolved Hide resolved
with:
workflow: Trivy
token: ${{ secrets.BROADBOT_TOKEN }}
uses: ./.github/workflows/trivy.yml
Copy link
Member

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?

Copy link
Contributor Author

@s-rubenstein s-rubenstein Aug 4, 2023

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.

.github/workflows/tag.yml Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@snf2ye snf2ye left a 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:
Copy link
Member

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 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants