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

⚠️Run fails after v3.1.0 in editorconfig-checker.javascript #409

Closed
lumirlumir opened this issue Jan 8, 2025 · 13 comments
Closed

⚠️Run fails after v3.1.0 in editorconfig-checker.javascript #409

lumirlumir opened this issue Jan 8, 2025 · 13 comments

Comments

@lumirlumir
Copy link

lumirlumir commented Jan 8, 2025

Hello,

I noticed that version 3.1.0 doesn’t include binary files, which causes CI to fail when running editorconfig-checker in a JavaScript environment.

It seems that editorconfig-checker.javascript depends on the GitHub Release Assets, so the binaries should be included.

image

@lumirlumir lumirlumir changed the title Run fails after v3.1.0 in editorconfig-checker.javascript ⚠️Run fails after v3.1.0 in editorconfig-checker.javascript Jan 8, 2025
@A1bi
Copy link

A1bi commented Jan 8, 2025

Release pipeline is broken.

@mstruebing
Copy link
Member

@klaernie @theoludwig do you know if the pipeline uses/have access to the correct secrets?

@lumirlumir
Copy link
Author

lumirlumir commented Jan 8, 2025

If someone using editorconfig-checker.javascript, make sure to add EC_VERSION to your process.env. This will ensure it works correctly in v3.0.3.

  • Example: GitHub Actions

    env:
          EC_VERSION: v3.0.3

@ngxson
Copy link

ngxson commented Jan 8, 2025

For github workflow, you can specify the version number via inputs:

jobs:
  editorconfig:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: editorconfig-checker/action-editorconfig-checker@v2
        with:
          version: v3.0.3
      - run: editorconfig-checker

lumirlumir added a commit to lumirlumir/npm-bananass that referenced this issue Jan 8, 2025
…nt.yml` workflow (#58)

This pull request includes an update to the `.github/workflows/lint.yml`
file to enhance the security and stability of the linting process by
pinning the `editorconfig-checker` version.

*
[`.github/workflows/lint.yml`](diffhunk://#diff-107e910e9f2ebfb9a741fa10b2aa7100cc1fc4f5f3aca2dfe78b905cbd73c0d2R14-R16):
Added an environment variable `EC_VERSION` set to `3.0.3` for
`editorconfig-checker` to ensure a specific version is used.

Ref: See,
editorconfig-checker/editorconfig-checker#409
@klaernie
Copy link
Member

klaernie commented Jan 8, 2025

@klaernie @theoludwig do you know if the pipeline uses/have access to the correct secrets?

Access to the secrets is not the problem, there was no complaint that there were missing values. I would assume the username/password combination stored in the secrets is not working. Assuming you(@mstruebing) created them, it would be worth a try to reenter the secrets on organization level and remove the secrets on repo level. Afterwards we can rerun the action and hopefully will have both binaries in the release and dockerhub.

@mstruebing
Copy link
Member

@klaernie I've updated them in both places just to be sure.
But as far as I can see the data should not have changed.

@echoix
Copy link
Contributor

echoix commented Jan 8, 2025

There's also all the related repos that aren't updated too.
No mention of pre-commit?

@theoludwig
Copy link
Member

@klaernie @theoludwig do you know if the pipeline uses/have access to the correct secrets?

I don't know what happened, or why the secrets changed.
I saw the error when I merged the release PR this morning, and posted a comment here: #408 (comment)

I've updated them in both places just to be sure.

I re-run the goreleaser CI, it seems to have worked: https://github.com/editorconfig-checker/editorconfig-checker/actions/runs/12666582550/job/35314610695

@theoludwig
Copy link
Member

@ngxson @lumirlumir

Thank you for providing the workarounds, and sorry for the inconveniences.
I would say, it is a best practice to keep the version explicit. 👍

The issue has been resolved, and you can now all upgrade to v3.1.0, it should work without issues.

@theoludwig
Copy link
Member

In the GitHub release, I see lot of .json files in the assets, are they necessary? Maybe we can remove them, so that there are less assets, it feels a bit much right now. What do you think? @klaernie

@mstruebing
Copy link
Member

Maybe the bot user needs to be assigned a specific organisation group?
I’ve updated the secrets but I really doubt they have changed.

@lumirlumir
Copy link
Author

lumirlumir commented Jan 8, 2025

Thank you, everyone, for your hard work!🔥🔥

Please close this issue once everything is fine!

@klaernie
Copy link
Member

klaernie commented Jan 8, 2025

In the GitHub release, I see lot of .json files in the assets, are they necessary? Maybe we can remove them, so that there are less assets, it feels a bit much right now. What do you think? @klaernie

@theoludwig I would expect most people do not care. Currently the list is more bloated, since we have both files with the old binary name ecas well as archives using the new name editorconfig-checker. Once #371 is merged this will be better as well.

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

7 participants