-
Notifications
You must be signed in to change notification settings - Fork 2
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
🐛 [bug]: using v1 gives node16 deprecation warnings #21
Comments
It should have been fixed with this #20 |
Will review, bump deps, test and release new one around end of 1st week of March. |
any way I can help to get this released? |
any update on the release @DariuszPorowski ? |
@mvanduijker @pakosak currently this PR is a blocker: #22 |
@DariuszPorowski - Any plans to still cutover a |
## 💌 Description - switch to pipx for deps install - deprecate `token` in favor of `github-token` - prep for v2 ## 🔗 Related issue <!-- If your PR refers to a related issue, link it here. --> Fixes: #21 ## 🏗️ Type of change <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [ ] 📚 Examples/docs/tutorials - [ ] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] 🥂 Improvement (non-breaking change which improves an existing feature) - [ ] 🚀 New feature (non-breaking change which adds functionality) - [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change) - [ ] 🚨 Security fix - [ ] ⬆️ Dependencies update ## ✅ Checklist <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [ ] I've read the [`Code of Conduct`](https://github.com/raven-actions/actionlint/blob/main/.github/CODE_OF_CONDUCT.md) document. - [ ] I've read the [`Contributing`](https://github.com/raven-actions/actionlint/blob/main/.github/CONTRIBUTING.md) guide.
@kxc171 done :) v2 released :) |
@DariuszPorowski Great, but this time around could you use tags only for specific versions like |
@rindeal, thanks for the suggestion. I started thinking to skip any major tags at all and do only semver, going further looking for GitHub feature like github/roadmap#592 |
Just doing semver tags and no The new feature you mentioned is 2 years old, has been rescheduled twice and currently has no ETA set. So we have at least a good year and likely more before it starts rolling out. Also we don't know whether it will have or not an autoupdate feature like the |
I'm not too fond of the idea of a v2 branch and rather stick with moving a v2 tag (and a v2.x tag) on the main branch when doing a release. Of course, that can be automated by using GitHub actions. I have one action that creates a release___patch branch and a PR assigned to someone to review. Once, that is done and the branch is merged, another action does the tagging and release. |
The complexity you just described is exactly what one gets when abusing the Git tag feature in such an attempt to mimic a branch. Git tags are intended to be created once, then signed and sealed forever. If you're looking for moving Git references, branches are the feature that fits the bill. Git 101. 🙄 |
Chiming in, while I do like the idea of leaning into immutable versions, there are benefits to having "fuzzy" versions available for fixes and security issues. While it does open the possibility for someone malicious to update a This gives the best of both worlds by allowing users to pin to a known version (SHA) or continue to use a Below is an example Workflow that could be used to easily create release.yamlname: Release Action
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
release:
name: Release action
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all tags
- name: Push version tags
id: tags
run: |
MAJOR=$(echo "$GITHUB_REF_NAME" | cut -d . -f 1)
MINOR=$(echo "$GITHUB_REF_NAME" | cut -d . -f 2)
PATCH=$(echo "$GITHUB_REF_NAME" | cut -d . -f 3)
git tag -f "$MAJOR" "$GITHUB_SHA"
git tag -f "$MAJOR.$MINOR" "$GITHUB_SHA"
git tag -f "$MAJOR.$MINOR.$PATCH" "$GITHUB_SHA"
git push -f -u origin "$MAJOR"
git push -f -u origin "$MAJOR.$MINOR"
git push -f -u origin "$MAJOR.$MINOR.$PATCH"
git show-ref --tags | grep "$GITHUB_SHA" |
Much security! Very force push! Wow. |
Unfortunately force pushing tags like that would be necessary in order to actually update existing tags. That's one of the reasons GitHub (and others) recommend pinning to full length commit SHAs for Actions instead because it does prevent the possibility of a tag to be updated unknowingly. If security is your concern, you should be pinning to SHAs. I don't think that should be the end-all-be-all solution to this though as not everyone needs to have that level of security and there are pros and cons to both approaches. |
name: Release Action
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: write
jobs:
release:
name: Release action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@HEAD
with:
fetch-depth: 0 # fetch all history
- name: Create, update, and verify version branches
run: |
IFS='.' read -r MAJOR MINOR PATCH <<< "${GITHUB_REF_NAME}"
for VERSION in "$MAJOR" "$MAJOR.$MINOR"; do
echo "Processing version: $VERSION"
git checkout -B "$VERSION" "$GITHUB_SHA"
git push -u origin "$VERSION"
if git branch -r | grep -q "origin/$VERSION"; then
echo "Branch $VERSION created/updated and verified"
else
echo "Failed to create/update branch $VERSION"
exit 1
fi
done
Everyone knows. This discussion was about options for those not using SHAs. Specifically:
As @DariuszPorowski noted, the GitHub team is planning to overhaul the Actions distribution to enforce immutable semver refs like in the npm registry. In the interim, we're limited to choosing between mutable git refs or hardcoded SHAs. Anyway, this thread went off-topic and is now just beating a dead horse, perhaps it's time to lock it @DariuszPorowski? |
🐛 What happened?
We start seeing deprecation warnings aboud node16 when using raven-actions/actionlint@v1:
🔬 How to reproduce?
Call actionlint action
🏗️ Code Sample / Log
🌌 Environment (actionlint action)
1.0.3
🌌 Environment (actionlint)
1.6.26-Linux-X64
🌌 Environment (GitHub Runner OS)
Linux
📷 Screenshots
No response
📈 Expected behavior
actions/cache is upgraded to v4 to remove the warning
📎 Additional context
No response
📜 Code of Conduct
The text was updated successfully, but these errors were encountered: