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

[BUG] reviewdog: this is not PullRequest build. #2015

Closed
4 tasks done
vinnygambiny opened this issue Aug 21, 2024 · 2 comments
Closed
4 tasks done

[BUG] reviewdog: this is not PullRequest build. #2015

vinnygambiny opened this issue Aug 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@vinnygambiny
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

The action failed with this error

eslint-changed-files
  Resolving repository path: /-----/js/react-app
  Running ESLint on changed files...
  reviewdog: this is not PullRequest build.

To Reproduce

    steps:
        - name: Checkout
          uses: actions/checkout@v4

        - run: npm ci

        - name: Run eslint on changed files
          uses: tj-actions/eslint-changed-files@v25
          with:
            config_path: "${{ github.workspace }}/eslint.config.mjs"
            path: "src-webpack/js/react-app"
            extra_args: "--fix"

        - name: Commit changes
          uses: stefanzweifel/git-auto-commit-action@v5
          with:
            commit_message: Apply ESLint
            skip_fetch: true

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-22.04

Expected behavior?

Just working

Relevant log output

2024-08-21T20:14:16.9820277Z Current runner version: '2.319.1'
2024-08-21T20:14:16.9851827Z ##[group]Operating System
2024-08-21T20:14:16.9852749Z Ubuntu
2024-08-21T20:14:16.9853345Z 22.04.4
2024-08-21T20:14:16.9854075Z LTS
2024-08-21T20:14:16.9854645Z ##[endgroup]
2024-08-21T20:14:16.9855313Z ##[group]Runner Image
2024-08-21T20:14:16.9856158Z Image: ubuntu-22.04
2024-08-21T20:14:16.9856773Z Version: 20240818.1.0
2024-08-21T20:14:16.9858505Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240818.1/images/ubuntu/Ubuntu2204-Readme.md
2024-08-21T20:14:16.9861079Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240818.1
2024-08-21T20:14:16.9862490Z ##[endgroup]
2024-08-21T20:14:16.9863145Z ##[group]Runner Image Provisioner
2024-08-21T20:14:16.9864105Z 2.0.382.1
2024-08-21T20:14:16.9864696Z ##[endgroup]
2024-08-21T20:14:16.9880813Z ##[group]GITHUB_TOKEN Permissions
2024-08-21T20:14:16.9882387Z Contents: write
2024-08-21T20:14:16.9882938Z Metadata: read
2024-08-21T20:14:16.9883491Z ##[endgroup]
2024-08-21T20:14:16.9886687Z Secret source: Actions
2024-08-21T20:14:16.9887262Z Prepare workflow directory
2024-08-21T20:14:17.0499747Z Prepare all required actions
2024-08-21T20:14:17.0655585Z Getting action download info
2024-08-21T20:14:17.2451345Z Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332)
2024-08-21T20:14:17.3425629Z Download action repository 'tj-actions/eslint-changed-files@v25' (SHA:2c870c9b7146a008db504b4cb40f01de75dfc3ac)
2024-08-21T20:14:17.5914185Z Download action repository 'stefanzweifel/git-auto-commit-action@v5' (SHA:8621497c8c39c72f3e2a999a26b4ca1b5058a842)
2024-08-21T20:14:17.8259818Z Getting action download info
2024-08-21T20:14:17.9340591Z Download action repository 'reviewdog/action-setup@v1' (SHA:3f401fe1d58fe77e10d665ab713057375e39b887)
2024-08-21T20:14:18.1157003Z Download action repository 'tj-actions/changed-files@v44' (SHA:c65cd883420fd2eb864698a825fc4162dd94482c)
2024-08-21T20:14:18.3633176Z Complete job name: ESLint
2024-08-21T20:14:18.4522245Z ##[group]Run actions/checkout@v4
2024-08-21T20:14:18.4522833Z with:
2024-08-21T20:14:18.4523352Z   repository: magnetisinc/Gestionnaire-inventaire
2024-08-21T20:14:18.4524181Z   token: ***
2024-08-21T20:14:18.4524579Z   ssh-strict: true
2024-08-21T20:14:18.4525053Z   ssh-user: git
2024-08-21T20:14:18.4525453Z   persist-credentials: true
2024-08-21T20:14:18.4525929Z   clean: true
2024-08-21T20:14:18.4526413Z   sparse-checkout-cone-mode: true
2024-08-21T20:14:18.4526885Z   fetch-depth: 1
2024-08-21T20:14:18.4527268Z   fetch-tags: false
2024-08-21T20:14:18.4527766Z   show-progress: true
2024-08-21T20:14:18.4528192Z   lfs: false
2024-08-21T20:14:18.4528551Z   submodules: false
2024-08-21T20:14:18.4529007Z   set-safe-directory: true
2024-08-21T20:14:18.4529460Z ##[endgroup]
2024-08-21T20:14:18.6721960Z Syncing repository: magnetisinc/Gestionnaire-inventaire
2024-08-21T20:14:18.6725421Z ##[group]Getting Git version info
2024-08-21T20:14:18.6727513Z Working directory is '/home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire'
2024-08-21T20:14:18.6730123Z [command]/usr/bin/git version
2024-08-21T20:14:18.6731370Z git version 2.46.0
2024-08-21T20:14:18.6760314Z ##[endgroup]
2024-08-21T20:14:18.6783156Z Temporarily overriding HOME='/home/runner/work/_temp/0758fa6d-11e7-4215-aaab-6e9e8014e7a5' before making global git config changes
2024-08-21T20:14:18.6785844Z Adding repository directory to the temporary git global config as a safe directory
2024-08-21T20:14:18.6797343Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire
2024-08-21T20:14:18.6842583Z Deleting the contents of '/home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire'
2024-08-21T20:14:18.6846659Z ##[group]Initializing the repository
2024-08-21T20:14:18.6853285Z [command]/usr/bin/git init /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire
2024-08-21T20:14:18.6944633Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-08-21T20:14:18.6947035Z hint: is subject to change. To configure the initial branch name to use in all
2024-08-21T20:14:18.6949076Z hint: of your new repositories, which will suppress this warning, call:
2024-08-21T20:14:18.6950473Z hint:
2024-08-21T20:14:18.6951497Z hint: 	git config --global init.defaultBranch <name>
2024-08-21T20:14:18.6952795Z hint:
2024-08-21T20:14:18.6953976Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-08-21T20:14:18.6955835Z hint: 'development'. The just-created branch can be renamed via this command:
2024-08-21T20:14:18.6957439Z hint:
2024-08-21T20:14:18.6958168Z hint: 	git branch -m <name>
2024-08-21T20:14:18.6959985Z Initialized empty Git repository in /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire/.git/
2024-08-21T20:14:18.6975331Z [command]/usr/bin/git remote add origin https://github.com/magnetisinc/Gestionnaire-inventaire
2024-08-21T20:14:18.7018945Z ##[endgroup]
2024-08-21T20:14:18.7020710Z ##[group]Disabling automatic garbage collection
2024-08-21T20:14:18.7023596Z [command]/usr/bin/git config --local gc.auto 0
2024-08-21T20:14:18.7058620Z ##[endgroup]
2024-08-21T20:14:18.7060692Z ##[group]Setting up auth
2024-08-21T20:14:18.7066421Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-08-21T20:14:18.7101191Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-08-21T20:14:18.7434701Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-08-21T20:14:18.7471278Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-08-21T20:14:18.7717655Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-08-21T20:14:18.7767172Z ##[endgroup]
2024-08-21T20:14:18.7769135Z ##[group]Fetching the repository
2024-08-21T20:14:18.7779111Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +d14a4c5c8735e22a17bf79c50532d6831bb62fed:refs/remotes/origin/auth-stytch
2024-08-21T20:14:19.2453708Z From https://github.com/magnetisinc/Gestionnaire-inventaire
2024-08-21T20:14:19.2637893Z  * [new ref]         d14a4c5c8735e22a17bf79c50532d6831bb62fed -> origin/auth-stytch
2024-08-21T20:14:19.2640502Z ##[endgroup]
2024-08-21T20:14:19.2641459Z ##[group]Determining the checkout info
2024-08-21T20:14:19.2642599Z ##[endgroup]
2024-08-21T20:14:19.2643367Z [command]/usr/bin/git sparse-checkout disable
2024-08-21T20:14:19.2645311Z [command]/usr/bin/git config --local --unset-all extensions.worktreeConfig
2024-08-21T20:14:19.2647427Z ##[group]Checking out the ref
2024-08-21T20:14:19.2648726Z [command]/usr/bin/git checkout --progress --force -B auth-stytch refs/remotes/origin/auth-stytch
2024-08-21T20:14:19.3625572Z Switched to a new branch 'auth-stytch'
2024-08-21T20:14:19.3627076Z branch 'auth-stytch' set up to track 'origin/auth-stytch'.
2024-08-21T20:14:19.3630023Z ##[endgroup]
2024-08-21T20:14:19.3632420Z [command]/usr/bin/git log -1 --format='%H'
2024-08-21T20:14:19.3633760Z 'd14a4c5c8735e22a17bf79c50532d6831bb62fed'
2024-08-21T20:14:19.3992124Z ##[group]Run npm ci
2024-08-21T20:14:19.3992988Z �[36;1mnpm ci�[0m
2024-08-21T20:14:19.4270461Z shell: /usr/bin/bash -e {0}
2024-08-21T20:14:19.4271097Z ##[endgroup]
2024-08-21T20:14:26.5473762Z npm warn deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
2024-08-21T20:14:27.1262491Z npm warn deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
2024-08-21T20:14:27.1273427Z npm warn deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
2024-08-21T20:14:27.2650074Z npm warn deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
2024-08-21T20:14:27.3566677Z npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-21T20:14:27.3890533Z npm warn deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
2024-08-21T20:14:27.6892230Z npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
2024-08-21T20:14:27.6895700Z npm warn deprecated
2024-08-21T20:14:27.6901328Z npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
2024-08-21T20:14:28.2357960Z npm warn deprecated [email protected]: This package is no longer supported.
2024-08-21T20:14:28.4286016Z npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
2024-08-21T20:14:28.9507213Z npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2024-08-21T20:14:29.2054830Z npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
2024-08-21T20:14:29.3636808Z npm warn deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
2024-08-21T20:14:29.4159190Z npm warn deprecated [email protected]: This module is no longer supported.
2024-08-21T20:14:29.4620876Z npm warn deprecated [email protected]: This package is no longer supported.
2024-08-21T20:14:29.7058465Z npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2024-08-21T20:14:29.9157335Z npm warn deprecated [email protected]: this library is no longer supported
2024-08-21T20:14:29.9467609Z npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2024-08-21T20:14:29.9950323Z npm warn deprecated [email protected]: This package is no longer supported.
2024-08-21T20:14:30.5409725Z npm warn deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
2024-08-21T20:14:30.5629420Z npm warn deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
2024-08-21T20:14:30.9439367Z npm warn deprecated @types/[email protected]: This is a stub types definition. react-tooltip provides its own type definitions, so you do not need this installed.
2024-08-21T20:14:31.2944286Z npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
2024-08-21T20:14:31.3132801Z npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
2024-08-21T20:14:32.8812804Z npm warn deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
2024-08-21T20:14:33.4194075Z npm warn deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2024-08-21T20:14:34.1574029Z npm warn deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
2024-08-21T20:14:34.2820849Z npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-21T20:14:34.6537916Z npm warn deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
2024-08-21T20:14:34.7976389Z npm warn deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
2024-08-21T20:14:34.8710675Z npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
2024-08-21T20:14:35.5160826Z npm warn deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
2024-08-21T20:14:46.2571905Z 
2024-08-21T20:14:46.2573422Z > [email protected] prepare
2024-08-21T20:14:46.2574698Z > husky && husky install
2024-08-21T20:14:46.2575211Z 
2024-08-21T20:14:46.2965437Z Usage:
2024-08-21T20:14:46.2966586Z   husky install [dir] (default: .husky)
2024-08-21T20:14:46.2967586Z   husky uninstall
2024-08-21T20:14:46.2968244Z   husky set|add <file> [cmd]
2024-08-21T20:14:46.3390422Z husky - Git hooks installed
2024-08-21T20:14:46.3660480Z 
2024-08-21T20:14:46.3661062Z added 1723 packages, and audited 1725 packages in 27s
2024-08-21T20:14:46.3662037Z 
2024-08-21T20:14:46.3662633Z 251 packages are looking for funding
2024-08-21T20:14:46.3663358Z   run `npm fund` for details
2024-08-21T20:14:46.4092044Z 
2024-08-21T20:14:46.4093114Z 67 vulnerabilities (1 low, 43 moderate, 20 high, 3 critical)
2024-08-21T20:14:46.4094212Z 
2024-08-21T20:14:46.4094913Z To address issues that do not require attention, run:
2024-08-21T20:14:46.4095912Z   npm audit fix
2024-08-21T20:14:46.4096374Z 
2024-08-21T20:14:46.4096857Z To address all issues possible (including breaking changes), run:
2024-08-21T20:14:46.4098095Z   npm audit fix --force
2024-08-21T20:14:46.4098429Z 
2024-08-21T20:14:46.4098768Z Some issues need review, and may require choosing
2024-08-21T20:14:46.4099492Z a different dependency.
2024-08-21T20:14:46.4099955Z 
2024-08-21T20:14:46.4100183Z Run `npm audit` for details.
2024-08-21T20:14:46.4699326Z ##[group]Run tj-actions/eslint-changed-files@v25
2024-08-21T20:14:46.4699954Z with:
2024-08-21T20:14:46.4700549Z   config_path: /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire/eslint.config.mjs
2024-08-21T20:14:46.4701262Z   path: src-webpack/js/react-app
2024-08-21T20:14:46.4701738Z   extra_args: --fix
2024-08-21T20:14:46.4702278Z   token: ***
2024-08-21T20:14:46.4702574Z   all_files: false
2024-08-21T20:14:46.4703032Z   file_extensions: **/*.{ts,tsx,js,jsx}

2024-08-21T20:14:46.4703472Z   skip_annotations: false
2024-08-21T20:14:46.4703797Z   level: error
2024-08-21T20:14:46.4704256Z   reporter: github-pr-review
2024-08-21T20:14:46.4704651Z   filter_mode: added
2024-08-21T20:14:46.4704964Z   fail_on_error: true
2024-08-21T20:14:46.4705384Z   skip_initial_fetch: false
2024-08-21T20:14:46.4705756Z   use_rest_api: false
2024-08-21T20:14:46.4706068Z   escape_paths: true
2024-08-21T20:14:46.4706486Z ##[endgroup]
2024-08-21T20:14:46.4928343Z ##[group]Run reviewdog/action-setup@v1
2024-08-21T20:14:46.4928774Z with:
2024-08-21T20:14:46.4929195Z   reviewdog_version: v0.20.0
2024-08-21T20:14:46.4929535Z ##[endgroup]
2024-08-21T20:14:46.4957804Z ##[group]Run set -eu
2024-08-21T20:14:46.4958322Z �[36;1mset -eu�[0m
2024-08-21T20:14:46.4958711Z �[36;1m"$GITHUB_ACTION_PATH/install.sh"�[0m
2024-08-21T20:14:46.5023190Z shell: /usr/bin/sh -e {0}
2024-08-21T20:14:46.5023609Z env:
2024-08-21T20:14:46.5023901Z   REVIEWDOG_VERSION: v0.20.0
2024-08-21T20:14:46.5024419Z   REVIEWDOG_TEMPDIR: /home/runner/work/_temp
2024-08-21T20:14:46.5024885Z ##[endgroup]
2024-08-21T20:14:46.5122449Z ##[group]🐶 Installing reviewdog ... https://github.com/reviewdog/reviewdog
2024-08-21T20:14:46.5687454Z reviewdog/reviewdog info checking GitHub for tag 'v0.20.0'
2024-08-21T20:14:46.7344689Z reviewdog/reviewdog info found version: 0.20.0 for v0.20.0/Linux/x86_64
2024-08-21T20:14:47.2588813Z reviewdog/reviewdog info installed /home/runner/work/_temp/reviewdog/bin/reviewdog
2024-08-21T20:14:47.2638484Z ##[endgroup]
2024-08-21T20:14:47.2673286Z ##[group]Run set -eu
2024-08-21T20:14:47.2673854Z �[36;1mset -eu�[0m
2024-08-21T20:14:47.2674248Z �[36;1m"$GITHUB_ACTION_PATH/check-installed.sh"�[0m
2024-08-21T20:14:47.2739748Z shell: /usr/bin/sh -e {0}
2024-08-21T20:14:47.2740145Z ##[endgroup]
2024-08-21T20:14:47.2824507Z ##[group]📖 reviewdog -h
2024-08-21T20:14:47.2846715Z Usage:	reviewdog [flags]
2024-08-21T20:14:47.2847877Z 	reviewdog accepts any compiler or linter results from stdin and filters
2024-08-21T20:14:47.2849741Z 	them by diff for review. reviewdog also can posts the results as a comment to
2024-08-21T20:14:47.2851207Z 	GitHub if you use reviewdog in CI service.
2024-08-21T20:14:47.2852142Z Flags:
2024-08-21T20:14:47.2853050Z   -conf string
2024-08-21T20:14:47.2853573Z     	config file path
2024-08-21T20:14:47.2854109Z   -diff string
2024-08-21T20:14:47.2855377Z     	diff command (e.g. "git diff") for local reporters. Do not use --relative flag for git command.
2024-08-21T20:14:47.2856643Z   -efm value
2024-08-21T20:14:47.2857820Z     	list of supported machine-readable format and errorformat (https://github.com/reviewdog/errorformat)
2024-08-21T20:14:47.2858944Z   -f string
2024-08-21T20:14:47.2860147Z     	format name (run -list to see supported format name) for input. It's also used as tool name in review comment if -name is empty
2024-08-21T20:14:47.2860976Z   -f.diff.strip int
2024-08-21T20:14:47.2861879Z     	option for -f=diff: strip NUM leading components from diff file names (equivalent to 'patch -p') (default is 1 for git diff) (default 1)
2024-08-21T20:14:47.2862776Z   -fail-on-error
2024-08-21T20:14:47.2863197Z     	Returns 1 as exit code if any errors/warnings found in input
2024-08-21T20:14:47.2863732Z   -filter-mode value
2024-08-21T20:14:47.2864288Z     	how to filter checks results. [added, diff_context, file, nofilter].
2024-08-21T20:14:47.2864814Z     			"added" (default)
2024-08-21T20:14:47.2865215Z     				Filter by added/modified diff lines.
2024-08-21T20:14:47.2865971Z     			"diff_context"
2024-08-21T20:14:47.2866425Z     				Filter by diff context, which can include unchanged lines.
2024-08-21T20:14:47.2867139Z     				i.e. changed lines +-N lines (e.g. N=3 for default git diff).
2024-08-21T20:14:47.2867744Z     			"file"
2024-08-21T20:14:47.2868053Z     				Filter by added/modified file.
2024-08-21T20:14:47.2868460Z     			"nofilter"
2024-08-21T20:14:47.2868888Z     				Do not filter any results.
2024-08-21T20:14:47.2869236Z     	
2024-08-21T20:14:47.2869542Z   -guess
2024-08-21T20:14:47.2870008Z     	guess Pull Request ID by branch name and commit SHA
2024-08-21T20:14:47.2870472Z   -level string
2024-08-21T20:14:47.2870981Z     	default report level for supported reporters ("info","warning","error").
2024-08-21T20:14:47.2871607Z   -list
2024-08-21T20:14:47.2872072Z     	list supported pre-defined format names which can be used as -f arg
2024-08-21T20:14:47.2872653Z   -log-level string
2024-08-21T20:14:47.2873351Z     	log level for reviewdog itself. (debug, info, warning, error) (default "info")
2024-08-21T20:14:47.2873912Z   -name string
2024-08-21T20:14:47.2874453Z     	tool name in review comment. -f is used as tool name if -name is empty
2024-08-21T20:14:47.2875100Z   -reporter string
2024-08-21T20:14:47.2875414Z     	reporter of reviewdog results.
2024-08-21T20:14:47.2875832Z     		"local" (default)
2024-08-21T20:14:47.2876262Z     			Report results to stdout.
2024-08-21T20:14:47.2876594Z     	
2024-08-21T20:14:47.2876896Z     		"rdjson"
2024-08-21T20:14:47.2877316Z     			Report results to stdout in rdjson format.
2024-08-21T20:14:47.2877709Z     	
2024-08-21T20:14:47.2878010Z     		"rdjsonl"
2024-08-21T20:14:47.2878637Z     			Report results to stdout in rdjsonl format.
2024-08-21T20:14:47.2879049Z     	
2024-08-21T20:14:47.2879333Z     		"sarif"
2024-08-21T20:14:47.2879748Z     			Report results to stdout in SARIF format.
2024-08-21T20:14:47.2880157Z     	
2024-08-21T20:14:47.2880479Z     		"github-check"
2024-08-21T20:14:47.2881088Z     			Report results to GitHub Check. It works both for Pull Requests and commits.
2024-08-21T20:14:47.2881807Z     			For Pull Request, you can see report results in GitHub PullRequest Check
2024-08-21T20:14:47.2882514Z     			tab and can control filtering mode by -filter-mode flag.
2024-08-21T20:14:47.2883088Z     	
2024-08-21T20:14:47.2883436Z     			There are two options to use this reporter.
2024-08-21T20:14:47.2883833Z     	
2024-08-21T20:14:47.2884344Z     			Option 1) Run reviewdog from GitHub Actions w/ secrets.GITHUB_TOKEN
2024-08-21T20:14:47.2885028Z     				Note that it reports result to GitHub Actions log console for Pull
2024-08-21T20:14:47.2885665Z     				Requests from fork repository due to GitHub Actions restriction.
2024-08-21T20:14:47.2886654Z     				https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret
2024-08-21T20:14:47.2887336Z     	
2024-08-21T20:14:47.2887717Z     				Set REVIEWDOG_GITHUB_API_TOKEN with secrets.GITHUB_TOKEN. e.g.
2024-08-21T20:14:47.2888493Z     						REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-08-21T20:14:47.2888978Z     	
2024-08-21T20:14:47.2889277Z     			Option 2) Install reviewdog GitHub Apps
2024-08-21T20:14:47.2889914Z     				1. Install reviewdog Apps. https://github.com/apps/reviewdog
2024-08-21T20:14:47.2890575Z     				2. Set REVIEWDOG_TOKEN or run reviewdog CLI in trusted CI providers.
2024-08-21T20:14:47.2891914Z     				You can get token from https://reviewdog.app/gh/<owner>/<repo-name>.
2024-08-21T20:14:47.2893007Z     				$ export REVIEWDOG_TOKEN="xxxxx"
2024-08-21T20:14:47.2893645Z     	
2024-08-21T20:14:47.2894449Z     				Note: Token is not required if you run reviewdog in Travis CI.
2024-08-21T20:14:47.2895242Z     	
2024-08-21T20:14:47.2895777Z     		"github-pr-check"
2024-08-21T20:14:47.2898453Z     			Same as github-check reporter but it only supports Pull Requests.
2024-08-21T20:14:47.2899330Z     	
2024-08-21T20:14:47.2899911Z     		"github-pr-review"
2024-08-21T20:14:47.2900685Z     			Report results to GitHub review comments.
2024-08-21T20:14:47.2901551Z     	
2024-08-21T20:14:47.2902200Z     			1. Set REVIEWDOG_GITHUB_API_TOKEN environment variable.
2024-08-21T20:14:47.2903545Z     			Go to https://github.com/settings/tokens and create new Personal access token with repo scope.
2024-08-21T20:14:47.2904819Z     	
2024-08-21T20:14:47.2905337Z     			For GitHub Enterprise:
2024-08-21T20:14:47.2906324Z     				$ export GITHUB_API="https://example.githubenterprise.com/api/v3"
2024-08-21T20:14:47.2907139Z     	
2024-08-21T20:14:47.2907729Z     		"gitlab-mr-discussion"
2024-08-21T20:14:47.2908285Z     			Report results to GitLab MergeRequest discussion.
2024-08-21T20:14:47.2908739Z     	
2024-08-21T20:14:47.2909131Z     			1. Set REVIEWDOG_GITLAB_API_TOKEN environment variable.
2024-08-21T20:14:47.2909786Z     			Go to https://gitlab.com/profile/personal_access_tokens
2024-08-21T20:14:47.2910255Z     	
2024-08-21T20:14:47.2910775Z     			CI_API_V4_URL (defined by Gitlab CI) as the base URL for the Gitlab API automatically.
2024-08-21T20:14:47.2911692Z     			Alternatively, GITLAB_API can also be defined, and it will take precedence over the former:
2024-08-21T20:14:47.2912413Z     				$ export GITLAB_API="https://example.gitlab.com/api/v4"
2024-08-21T20:14:47.2912891Z     	
2024-08-21T20:14:47.2913293Z     		"gitlab-mr-commit"
2024-08-21T20:14:47.2913866Z     			Same as gitlab-mr-discussion, but report results to GitLab comments for
2024-08-21T20:14:47.2914457Z     			each commits in Merge Requests.
2024-08-21T20:14:47.2914928Z     	
2024-08-21T20:14:47.2915230Z     		"gerrit-change-review"
2024-08-21T20:14:47.2915652Z     			Report results to Gerrit Change comments.
2024-08-21T20:14:47.2916361Z     	
2024-08-21T20:14:47.2916779Z     			1. Set GERRIT_USERNAME and GERRIT_PASSWORD for basic authentication or
2024-08-21T20:14:47.2917424Z     			GIT_GITCOOKIE_PATH for git cookie based authentication.
2024-08-21T20:14:47.2918150Z     			2. Set GERRIT_CHANGE_ID, GERRIT_REVISION_ID GERRIT_BRANCH and GERRIT_ADDRESS
2024-08-21T20:14:47.2918659Z     	
2024-08-21T20:14:47.2918954Z     			For example:
2024-08-21T20:14:47.2919465Z     				$ export GERRIT_CHANGE_ID=myproject~master~I1293efab014de2
2024-08-21T20:14:47.2919958Z     				$ export GERRIT_REVISION_ID=ed318bf9a3c
2024-08-21T20:14:47.2920426Z     				$ export GERRIT_BRANCH=master
2024-08-21T20:14:47.2920963Z     				$ export GERRIT_ADDRESS=http://localhost:8080
2024-08-21T20:14:47.2921384Z     		
2024-08-21T20:14:47.2921750Z     		"bitbucket-code-report"
2024-08-21T20:14:47.2922254Z     			Create Bitbucket Code Report via Code Insights
2024-08-21T20:14:47.2922831Z     			(https://confluence.atlassian.com/display/BITBUCKET/Code+insights).
2024-08-21T20:14:47.2923441Z     			You can set custom report name with:
2024-08-21T20:14:47.2923908Z     	
2024-08-21T20:14:47.2924378Z     			If running as part of Bitbucket Pipelines no additional configurations is needed.
2024-08-21T20:14:47.2925171Z     			If running outside of Bitbucket Pipelines you need to provide git repo data
2024-08-21T20:14:47.2925973Z     			(see documentation below for local reporters) and BitBucket credentials:
2024-08-21T20:14:47.2926733Z     			- For Basic Auth you need to set following env variables:
2024-08-21T20:14:47.2927239Z     				  BITBUCKET_USER and BITBUCKET_PASSWORD
2024-08-21T20:14:47.2927913Z     			- For AccessToken Auth you need to set BITBUCKET_ACCESS_TOKEN
2024-08-21T20:14:47.2928434Z     			
2024-08-21T20:14:47.2928840Z     			To post results to Bitbucket Server specify BITBUCKET_SERVER_URL.
2024-08-21T20:14:47.2929430Z     	
2024-08-21T20:14:47.2929774Z     		"gitea-pr-review"
2024-08-21T20:14:47.2930137Z     			Report results to Gitea review comments.
2024-08-21T20:14:47.2930625Z     	
2024-08-21T20:14:47.2931335Z     			1. Set REVIEWDOG_GITEA_API_TOKEN environment variable.
2024-08-21T20:14:47.2932227Z     			Go to https://<gitea-server>/user/settings/applications and create new Access Token token with repo scope.
2024-08-21T20:14:47.2933406Z     			2. Set GITEA_ADDRESS environment variable to your Gitea server base address.
2024-08-21T20:14:47.2933998Z     			For example:
2024-08-21T20:14:47.2934374Z     				$ export GITEA_ADDRESS=http://localhost:3000
2024-08-21T20:14:47.2934916Z     	
2024-08-21T20:14:47.2935326Z     		For GitHub Enterprise and self hosted GitLab or Gitea, set
2024-08-21T20:14:47.2936033Z     		REVIEWDOG_INSECURE_SKIP_VERIFY to skip verifying SSL (please use this at your own risk)
2024-08-21T20:14:47.2936777Z     			$ export REVIEWDOG_INSECURE_SKIP_VERIFY=true
2024-08-21T20:14:47.2937216Z     	
2024-08-21T20:14:47.2937710Z     		For non-local reporters, reviewdog automatically get necessary data from
2024-08-21T20:14:47.2938705Z     		environment variable in CI service (GitHub Actions, Travis CI, Circle CI, drone.io, GitLab CI, Bitbucket Pipelines).
2024-08-21T20:14:47.2939605Z     		You can set necessary data with following environment variable manually if
2024-08-21T20:14:47.2940308Z     		you want (e.g. run reviewdog in Jenkins).
2024-08-21T20:14:47.2940695Z     	
2024-08-21T20:14:47.2941096Z     			$ export CI_PULL_REQUEST=14 # Pull Request number (e.g. 14)
2024-08-21T20:14:47.2941869Z     			$ export CI_COMMIT="$(git rev-parse @)" # SHA1 for the current build
2024-08-21T20:14:47.2942448Z     			$ export CI_REPO_OWNER="haya14busa" # repository owner
2024-08-21T20:14:47.2942996Z     			$ export CI_REPO_NAME="reviewdog" # repository name
2024-08-21T20:14:47.2943534Z     	 (default "local")
2024-08-21T20:14:47.2943871Z   -runners string
2024-08-21T20:14:47.2944376Z     	comma separated runners name to run in config file. default: run all runners
2024-08-21T20:14:47.2945037Z   -strip int
2024-08-21T20:14:47.2945749Z     	strip NUM leading components from diff file names (equivalent to 'patch -p') (default is 1 for git diff) (default 1)
2024-08-21T20:14:47.2946661Z   -tee
2024-08-21T20:14:47.2947493Z     	enable "tee"-like mode which outputs tools's output as is while reporting results to -reporter. Useful for debugging as well.
2024-08-21T20:14:47.2948239Z   -version
2024-08-21T20:14:47.2948561Z     	print version
2024-08-21T20:14:47.2948789Z 
2024-08-21T20:14:47.2949122Z See https://github.com/reviewdog/reviewdog for more detail.
2024-08-21T20:14:47.2949902Z ##[endgroup]
2024-08-21T20:14:47.3108091Z ##[group]Run tj-actions/changed-files@v44
2024-08-21T20:14:47.3108490Z with:
2024-08-21T20:14:47.3108907Z   path: src-webpack/js/react-app
2024-08-21T20:14:47.3109358Z   files: **/*.{ts,tsx,js,jsx}

2024-08-21T20:14:47.3109746Z   diff_relative: true
2024-08-21T20:14:47.3110176Z   skip_initial_fetch: false
2024-08-21T20:14:47.3110519Z   use_rest_api: false
2024-08-21T20:14:47.3110875Z   safe_output: true
2024-08-21T20:14:47.3111277Z   separator:  
2024-08-21T20:14:47.3111599Z   include_all_old_new_renamed_files: false
2024-08-21T20:14:47.3112059Z   old_new_separator: ,
2024-08-21T20:14:47.3112522Z   old_new_files_separator:  
2024-08-21T20:14:47.3112916Z   files_from_source_file_separator: 

2024-08-21T20:14:47.3113306Z   files_separator: 

2024-08-21T20:14:47.3113731Z   files_yaml_from_source_file_separator: 

2024-08-21T20:14:47.3114214Z   files_ignore_yaml_from_source_file_separator: 

2024-08-21T20:14:47.3114653Z   files_ignore_separator: 

2024-08-21T20:14:47.3115239Z   files_ignore_from_source_file_separator: 

2024-08-21T20:14:47.3115689Z   quotepath: true
2024-08-21T20:14:47.3115979Z   dir_names: false
2024-08-21T20:14:47.3116390Z   dir_names_exclude_current_dir: false
2024-08-21T20:14:47.3116830Z   dir_names_include_files_separator: 

2024-08-21T20:14:47.3117304Z   dir_names_deleted_files_include_only_deleted_dirs: false
2024-08-21T20:14:47.3117869Z   json: false
2024-08-21T20:14:47.3118203Z   escape_json: true
2024-08-21T20:14:47.3118537Z   fetch_depth: 25
2024-08-21T20:14:47.3118922Z   fetch_additional_submodule_history: false
2024-08-21T20:14:47.3119377Z   since_last_remote_commit: false
2024-08-21T20:14:47.3119770Z   write_output_files: false
2024-08-21T20:14:47.3120171Z   output_dir: .github/outputs
2024-08-21T20:14:47.3120613Z   output_renamed_files_as_deleted_and_added: false
2024-08-21T20:14:47.3121246Z   recover_deleted_files: false
2024-08-21T20:14:47.3121738Z   recover_files_separator: 

2024-08-21T20:14:47.3122095Z   recover_files_ignore_separator: 

2024-08-21T20:14:47.3122675Z   token: ***
2024-08-21T20:14:47.3123102Z   api_url: https://api.github.com
2024-08-21T20:14:47.3123490Z   fail_on_initial_diff_error: false
2024-08-21T20:14:47.3123921Z   fail_on_submodule_diff_error: false
2024-08-21T20:14:47.3124402Z   negation_patterns_first: false
2024-08-21T20:14:47.3124750Z   matrix: false
2024-08-21T20:14:47.3125095Z   exclude_submodules: false
2024-08-21T20:14:47.3125541Z   fetch_missing_history_max_retries: 20
2024-08-21T20:14:47.3125938Z   use_posix_path_separator: false
2024-08-21T20:14:47.3126341Z   tags_pattern: *
2024-08-21T20:14:47.3126718Z ##[endgroup]
2024-08-21T20:14:47.4302710Z ##[group]changed-files
2024-08-21T20:14:47.4539684Z Using local .git directory
2024-08-21T20:14:47.5230968Z Running on a push event...
2024-08-21T20:14:47.5238078Z Repository is shallow, fetching more history...
2024-08-21T20:14:47.9250953Z Retrieving changes between 0ffd2ea33d6da626735e27bd1d6a7eca2e594171 (auth-stytch) → d14a4c5c8735e22a17bf79c50532d6831bb62fed (auth-stytch)
2024-08-21T20:14:47.9307900Z All Done!
2024-08-21T20:14:47.9309275Z ##[endgroup]
2024-08-21T20:14:47.9311959Z ##[group]changed-files-patterns
2024-08-21T20:14:47.9433510Z All Done!
2024-08-21T20:14:47.9434455Z ##[endgroup]
2024-08-21T20:14:47.9529148Z ##[group]Run # Run eslint on changed files
2024-08-21T20:14:47.9529638Z �[36;1m# Run eslint on changed files�[0m
2024-08-21T20:14:47.9530123Z �[36;1mbash $GITHUB_ACTION_PATH/entrypoint.sh�[0m
2024-08-21T20:14:47.9593751Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-08-21T20:14:47.9594292Z env:
2024-08-21T20:14:47.9594696Z   GITHUB_SERVER_URL: https://github.com
2024-08-21T20:14:47.9595248Z   GITHUB_REPOSITORY: magnetisinc/Gestionnaire-inventaire
2024-08-21T20:14:47.9595764Z   GITHUB_BASE_REF: 
2024-08-21T20:14:47.9596135Z   GITHUB_HEAD_REF: 
2024-08-21T20:14:47.9596551Z   GITHUB_SHA: d14a4c5c8735e22a17bf79c50532d6831bb62fed
2024-08-21T20:14:47.9597263Z   INPUT_TOKEN: ***
2024-08-21T20:14:47.9597870Z   REVIEWDOG_GITHUB_API_TOKEN: ***
2024-08-21T20:14:47.9598288Z   INPUT_PATH: src-webpack/js/react-app
2024-08-21T20:14:47.9598711Z   INPUT_LEVEL: error
2024-08-21T20:14:47.9599126Z   INPUT_ALL_FILES: false
2024-08-21T20:14:47.9599787Z   INPUT_CONFIG_PATH: /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire/eslint.config.mjs
2024-08-21T20:14:47.9600577Z   INPUT_CHANGED_FILES: components/auth/Login.tsx
2024-08-21T20:14:47.9601110Z   INPUT_EXTRA_ARGS: --fix
2024-08-21T20:14:47.9601469Z   INPUT_FILTER_MODE: added
2024-08-21T20:14:47.9601851Z   INPUT_FAIL_ON_ERROR: true
2024-08-21T20:14:47.9602304Z   INPUT_REPORTER: github-pr-review
2024-08-21T20:14:47.9602704Z   INPUT_SKIP_ANNOTATIONS: false
2024-08-21T20:14:47.9603089Z ##[endgroup]
2024-08-21T20:14:47.9700639Z ##[group]eslint-changed-files
2024-08-21T20:14:47.9702322Z Resolving repository path: /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire/src-webpack/js/react-app
2024-08-21T20:14:48.0163375Z Running ESLint on changed files...
2024-08-21T20:14:49.6098520Z reviewdog: this is not PullRequest build.
2024-08-21T20:14:49.6143213Z ##[error]Error running eslint.
2024-08-21T20:14:49.6144086Z ##[endgroup]
2024-08-21T20:14:49.6146469Z ##[error]Process completed with exit code 1.
2024-08-21T20:14:49.6231748Z Post job cleanup.
2024-08-21T20:14:49.7170202Z [command]/usr/bin/git version
2024-08-21T20:14:49.7211910Z git version 2.46.0
2024-08-21T20:14:49.7249643Z Copying '/home/runner/.gitconfig' to '/home/runner/work/_temp/43ecfec5-03c1-4b4d-b136-fdea1de4347b/.gitconfig'
2024-08-21T20:14:49.7260391Z Temporarily overriding HOME='/home/runner/work/_temp/43ecfec5-03c1-4b4d-b136-fdea1de4347b' before making global git config changes
2024-08-21T20:14:49.7262694Z Adding repository directory to the temporary git global config as a safe directory
2024-08-21T20:14:49.7267517Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/Gestionnaire-inventaire/Gestionnaire-inventaire
2024-08-21T20:14:49.7314713Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-08-21T20:14:49.7352761Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-08-21T20:14:49.7608609Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-08-21T20:14:49.7633027Z http.https://github.com/.extraheader
2024-08-21T20:14:49.7647263Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-08-21T20:14:49.7684080Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-08-21T20:14:49.8167020Z Cleaning up orphan processes

Has all relevant logs been included?

  • I've included all relevant logs

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vinnygambiny vinnygambiny added the bug Something isn't working label Aug 21, 2024
@kswilliames
Copy link

kswilliames commented Sep 9, 2024

It is likely failing because the event the job runs on looks like this

on:
  push:

Instead of this:

on:
  pull_request:
    types:
      - opened
      - synchronize

This is because Reviewdog using a reporter that requires the GitHub Actions API to be using the pull_request event. I haven't tried this but if you really need it to run on push events you may have some luck using this reporter: github-check by passing it as reporter in the GitHub Action.

@jackton1
Copy link
Member

jackton1 commented Sep 24, 2024

2024-08-21T20:14:47.5230968Z Running on a push event...

Hi @vinnygambiny @kswilliames, As mentioned above reviewdog adds annotations to PRs and only runs on pull_request* events. if you'd like to run on push events, you'll need to use skip_annotations input.

Example

on:
  pull_request:
    branches:
       - main
  push:
     branches:
        - main
  
...
    steps:
        - name: Checkout
          uses: actions/checkout@v4

        - run: npm ci

        - name: Run eslint on changed files
          uses: tj-actions/eslint-changed-files@v25
          with:
            config_path: "${{ github.workspace }}/eslint.config.mjs"
            path: "src-webpack/js/react-app"
            extra_args: "--fix"
            skip_annotations: ${{ github.event_name != "pull_request" }}  # <-- Add this line

        - name: Commit changes
          uses: stefanzweifel/git-auto-commit-action@v5
          with:
            commit_message: Apply ESLint
            skip_fetch: true

@jackton1 jackton1 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants