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

Update GitHub actions checkout and setup-python #75

Open
AyanSinhaMahapatra opened this issue May 22, 2023 · 3 comments
Open

Update GitHub actions checkout and setup-python #75

AyanSinhaMahapatra opened this issue May 22, 2023 · 3 comments

Comments

@AyanSinhaMahapatra
Copy link
Member

AyanSinhaMahapatra commented May 22, 2023

On tests, release scripts and other GitHub actions we see the following warning message now:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

From https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/

Node 12 has been out of support since [April 2022](https://github.com/nodejs/Release/#end-of-life-releases), as a result we have started the deprecation process of Node 12 for GitHub Actions. We plan to migrate all actions to run on Node16 by Summer 2023.
...
What you need to do
For Actions users: Update your workflows with latest versions of the actions which runs on Node 16 ([Using versions for Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-versioned-actions))

For us this is:

v3 of https://github.com/actions/checkout/ seems to be upgraded to latest node 16: actions/checkout@v2.4.2...v3.0.2#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R17-R18

We might want to look at the CHANGELOG too for possible breaking changes too potentially.

I've tested this on my fork of scancode-toolkit with aboutcode-org/scancode-toolkit@1448e66: and the doc and release script tests pass allright, here are some links to the actions before and after this update

Before:

After:

There are other github actions we use btw (which we use the latest versions of):

  • actions/download-artifact@v3
  • actions/upload-artifact@v3
  • softprops/action-gh-release@v1
@AyanSinhaMahapatra
Copy link
Member Author

We also have this for pypa/gh-action-pypi-publish@master which needs to be updated to pypa/gh-action-pypi-publish@release/v1:

 You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas.

AyanSinhaMahapatra added a commit that referenced this issue Jun 6, 2023
Update the following actions:

* actions/checkout
* actions/setup-python

Reference: #75
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
AyanSinhaMahapatra added a commit that referenced this issue Jun 6, 2023
Update the following actions:

* actions/checkout
* actions/setup-python

Reference: #75
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
AyanSinhaMahapatra added a commit that referenced this issue Jun 6, 2023
Update the following actions:

* actions/checkout
* actions/setup-python

Reference: #75
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
AyanSinhaMahapatra added a commit that referenced this issue Jun 6, 2023
@pombredanne
Copy link
Member

I created the new elf-inspector repo and I am still getting the issue:


Annotations
2 warnings
Create PyPI release: # >> PyPA publish to PyPI GHA: UNSUPPORTED GITHUB ACTION VERSION <<#L1
 You are using "pypa/gh-action-pypi-publish@master". The "master" branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use "pypa/gh-action-pypi-publish@release/v1". If you feel adventurous, you may opt to use use "pypa/gh-action-pypi-publish@unstable/v1" instead. A more general recommendation is to pin to exact tags or commit shas.

Has the the GH action been updated in the skeletton?

@AyanSinhaMahapatra
Copy link
Member Author

AyanSinhaMahapatra added a commit that referenced this issue Jul 10, 2023
Reference: #75
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
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

No branches or pull requests

2 participants