-
-
Notifications
You must be signed in to change notification settings - Fork 42
Support "working-directory" input #28
Comments
I might miss something here, but would not |
When you define a step, you can use either |
Ah, yes, you are right, my mistake. It feels, though, that GitHub should support that on a global level, as re-implementing the same thing each time in every Action feels quite redundant. Maybe it worth to file an issue to GitHub? |
I see your point. I didn't know where I should file an issue, so I sent an email to [email protected]. |
It's really unfortunate that Github Actions doesn't support While they work on that though, for anyone who is having trouble using this Action because of that limitation, this might help: clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --manifest-path path/to/Cargo.toml
|
Using the Any suggestions for a workaround? |
We previously were using the [clippy-check](https://github.com/actions-rs/clippy-check) GitHub Action to run clippy on changes. There's two problems with this: 1 - Because our `Cargo.toml` isn't at the root of the repo, `clippy-check` can't post clippy results into the PR as comments (see #69 and actions-rs/clippy-check#28 (comment)) 2 - We recently set `GITHUB_TOKEN` to be readonly at the `abetterinternet` level to mitigate potential security problems. `clippy-check` requires write permissions to post results. I'd prefer to keep the `GITHUB_TOKEN` passed to actions readonly, and since the results wrangling never worked anyway, we can opt out of it. Now, instead of using the action, we just run `cargo clippy` directly and fail the build if any warnings are found. Previously `clippy-check` would just emit findings into the void, never to be seen by anyone.
The problem with the |
…and_yarn/eslint-8.17.0 Bump eslint from 8.16.0 to 8.17.0
The action currently assumes there is exactly one Rust project and it's located in the root of the repo. It would be great to support
working-directory
such as the one you can use with regularrun
in a workflow step.The text was updated successfully, but these errors were encountered: