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

[Action] Project Green Scraper - Integrate Green Scraper GitHub Actions workflow in the TAG ENV repo #403

Open
1 of 3 tasks
guidemetothemoon opened this issue Apr 30, 2024 · 6 comments

Comments

@guidemetothemoon
Copy link
Contributor

Description

Events page that we want to populate data from the Green Scraper tool to will be located in the TAG ENV website events folder in this repository. We would need to integrate the Green Scraper GitHub Actions workflow located in cncf-tags/tag-env-tooling to being triggered on a schedule in the TAG ENV (this) repository.

Outcome

Green Scraper GH Actions workflow is integrated to be triggered on a schedule in the TAG ENV (this) repository.

To-Do

  • Integrate the Green Scraper GitHub Actions workflow located in cncf-tags/tag-env-tooling to being triggered on a schedule in the TAG ENV (this) repository.
  • Define a schedule that the tool will be triggered on. Should be possible to trigger manually, but also once in a few months maybe. TBD.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Comments

No response

@guidemetothemoon
Copy link
Contributor Author

I think that we should be able to use it as a reusable workflow since both repositories are public: https://docs.github.com/en/actions/using-workflows/reusing-workflows#access-to-reusable-workflows
Updating files in the TAG ENV repo should also be relatively easy with reusable workflows.
From the GitHub docs:

If you reuse a workflow from a different repository, any actions in the called workflow run as if they were part of the caller workflow. For example, if the called workflow uses actions/checkout, the action checks out the contents of the repository that hosts the caller workflow, not the called workflow.

Will do a proof of concept on this and confirm.

@guidemetothemoon
Copy link
Contributor Author

guidemetothemoon commented Sep 8, 2024

Update.

The workflow code is ready in a feature branch in tag-env-tooling repo: cncf-tags/tag-env-tooling#7
Also, workflow code in the TAG ENV repo: https://github.com/cncf/tag-env-sustainability/tree/add-green-scraper-workflow

To test the workflow in the tag-env-tooling repo I requested a fine-grained token with necessary permissions that is pending approval from the cncf-tags organization admin:
image

We need to create/re-use if already exists a GitHub workflow token for the tag-env-sustainability repo as well, but I'm not a member of CNCF organization so I can't request a fine-grained token for the tag-env-sustainability repo that they own. @leonardpahlke is this something you can help me with or tag someone from CNCF who can help?

Below are the permissions I've requested for the token for the tag-env-tooling repo:

image

@Al-HusseinHameedJasim FYI.

@leonardpahlke
Copy link
Member

@RobertKielty could you help us with the token?

@leonardpahlke is this something you can help me with or tag someone from CNCF who can help?

Below are the permissions I've requested for the token for the tag-env-tooling repo:

@RobertKielty
Copy link
Contributor

I'll take a look.

@guidemetothemoon
Copy link
Contributor Author

@RobertKielty thanks a lot! Also, if you can review (or link a relevant person to review) the requested token at cncf-tags organization that would've been great and much appreciated :)

@RobertKielty
Copy link
Contributor

RobertKielty commented Sep 11, 2024

@guidemetothemoon @leonardpahlke

Approved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants