Fixing the Alex bug
Problem:
Alex's Github Action is fails with an error "reviewdog: PullRequest needs 'git' command: failed to run 'git rev-parse --show-prefix'"
Solution:
Changed the permissions of the directory where the target repository is checkeout in the workflow of GitHub Actions.
@@ -35,7 +35,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - uses: Seagate/action-alex@v1
+
+ - name: "Enable the permissions"
+ run: |
+ sudo chown -R root:root $GITHUB_WORKSPACE
+
+ - uses: seagate/action-alex@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
filter_mode: added
