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

security: set-output cmd deprecated. Use $GITHUB_OUTPUT env file #9287

Conversation

davorpa
Copy link
Member

@davorpa davorpa commented Feb 22, 2023

What does this PR do?

Improve repo

For resources

Description

To avoid untrusted logged data to use save-state and set-output workflow commands without the intention of the workflow author we have introduced a new set of environment files to manage state and output.

Starting 1st June 2023 workflows using save-state or set-output commands via stdout will fail with an error.

More info:

Why is this valuable (or not)?

image

It patches the deprecation

Checklist:

Follow-up

  • Check the status of GitHub Actions and resolve any reported warnings!

To avoid untrusted logged data to use `save-state` and `set-output` workflow commands without the intention of the workflow author we have introduced a new set of environment files to manage state and output.

Starting 1st June 2023 workflows using `save-state` or `set-output` commands via stdout will fail with an error.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
@davorpa davorpa marked this pull request as ready for review February 22, 2023 12:15
@davorpa davorpa marked this pull request as draft February 22, 2023 12:18
@davorpa
Copy link
Member Author

davorpa commented Feb 22, 2023

@davorpa davorpa added the 👀 Needs Review Is this really a good resource? Reviews requested. label Feb 22, 2023
@davorpa
Copy link
Member Author

davorpa commented Feb 22, 2023

Doing some tests to know how to fix awesomebot GitHub summary report

Compare:

Now it works again: https://github.com/EbookFoundation/free-programming-books/actions/runs/4243200736

@davorpa davorpa marked this pull request as ready for review February 22, 2023 13:32
Copy link
Contributor

@Thenlie Thenlie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me. ✅

  • No instances of set-output or save-state were missed in the workflow files. Verified with spotlight search of the repo.
  • Workflow checks are passing and output is properly formatted.

My only nit would be to squash these test commits into one.

@eshellman eshellman merged commit 44dd203 into EbookFoundation:main Feb 23, 2023
davorpa added a commit to davorpa/free-programming-books that referenced this pull request Feb 23, 2023
::set-output --> GITHUB_OUTPUT env file
eshellman pushed a commit that referenced this pull request Feb 24, 2023
* ci(check-urls): use a matrix to speed-up execution

The matrix strategy creates 10 max-parallel workers with a disabled fail-fast parameter

Examples
- Before: https://github.com/davorpa/free-programming-books/actions/runs/2999590952
- After: https://github.com/davorpa/free-programming-books/actions/runs/3007199364

Running the workflow when -langs or -subject files are involved could exhaust the runner execution max-time.

Using this implementation... the elapsed time is of the longest execution time, normally no more than 30min on the worst of cases

* fix: parallel strategy when matrix files.length == 0

* security: apply #9287

::set-output --> GITHUB_OUTPUT env file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Needs Review Is this really a good resource? Reviews requested.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants