Skip to content

Instantly share code, notes, and snippets.

@andrewvaughan
Created October 7, 2023 01:19
Headdesk Headdesk Headdesk
act \
--rm \
-s GITHUB_TOKEN="$(gh auth token)" \
--container-architecture "linux/amd64" \
pull_request
[MegaLinter/MegaLinter] πŸš€ Start image=catthehacker/ubuntu:act-latest
[MegaLinter/MegaLinter] 🐳 docker pull image=catthehacker/ubuntu:act-latest platform=linux/amd64 username= forcePull=true
[MegaLinter/MegaLinter] 🐳 docker create image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[MegaLinter/MegaLinter] 🐳 docker run image=catthehacker/ubuntu:act-latest platform=linux/amd64 entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[MegaLinter/MegaLinter] ☁ git clone 'https://github.com/oxsecurity/megalinter' # ref=v7
[MegaLinter/MegaLinter] Non-terminating error while running 'git clone': some refs were not updated
[MegaLinter/MegaLinter] ☁ git clone 'https://github.com/actions/upload-artifact' # ref=v3
[MegaLinter/MegaLinter] ☁ git clone 'https://github.com/peter-evans/create-pull-request' # ref=v5
[MegaLinter/MegaLinter] Non-terminating error while running 'git clone': some refs were not updated
[MegaLinter/MegaLinter] ☁ git clone 'https://github.com/stefanzweifel/git-auto-commit-action' # ref=v4
[MegaLinter/MegaLinter] ⭐ Run Main Checkout Code
[MegaLinter/MegaLinter] 🐳 docker cp src=/Users/andrew/Repositories/Personal/template-core/. dst=/Users/andrew/Repositories/Personal/template-core
[MegaLinter/MegaLinter] βœ… Success - Main Checkout Code
[MegaLinter/MegaLinter] ⭐ Run Main Lint with MegaLinter
[MegaLinter/MegaLinter] 🐳 docker pull image=oxsecurity/megalinter:v7.3.0 platform=linux/amd64 username= forcePull=true
[MegaLinter/MegaLinter] 🐳 docker create image=oxsecurity/megalinter:v7.3.0 platform=linux/amd64 entrypoint=[] cmd=["-v" "/var/run/docker.sock:/var/run/docker.sock:rw"]
[MegaLinter/MegaLinter] 🐳 docker run image=oxsecurity/megalinter:v7.3.0 platform=linux/amd64 entrypoint=[] cmd=["-v" "/var/run/docker.sock:/var/run/docker.sock:rw"]
| Skipped setting git safe.directory DEFAULT_WORKSPACE: ...
| Setting git safe.directory GITHUB_WORKSPACE: /Users/andrew/Repositories/Personal/template-core ...
| Setting git safe.directory to /tmp/lint ...
| [MegaLinter init] ONE-SHOT RUN
| [config] /Users/andrew/Repositories/Personal/template-core/.mega-linter.yml + Environment variables
| ----------------------------------------------------------------------------------------------------
| ------------------------------------ MegaLinter, by OX Security ------------------------------------
| ----------------------------------------------------------------------------------------------------
| - Image Creation Date: 2023-08-09T22:49:16Z
| - Image Revision: fda6ac3a38be0e969820709ac16e442464e5a035
| - Image Version: v7.3.0
| ----------------------------------------------------------------------------------------------------
| The MegaLinter documentation can be found at:
| - https://megalinter.io/7.3.0
| ----------------------------------------------------------------------------------------------------
[MegaLinter/MegaLinter] ❓ ::group::MegaLinter initialization (expand for details)
| MegaLinter will analyze workspace [/Users/andrew/Repositories/Personal/template-core]
| GITHUB_REPOSITORY: andrewvaughan/template-core
| GITHUB_REF: refs/pull/%!f(<nil>)/merge
| GITHUB_RUN_ID: 1
|
|
| [Pre] run: [apk add --no-cache ca-certificates] in cwd [/Users/andrew/Repositories/Personal/template-core]
| [Pre] result:
| fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
| fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
| OK: 1626 MiB in 249 packages
|
| [Pre] run: [curl -L -o /usr/local/share/ca-certificates/RootCA.crt http://path.to.cert] in cwd [/Users/andrew/Repositories/Personal/template-core]
| [Pre] error:
| % Total % Received % Xferd Average Speed Time Time Time Current
| Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: path.to.cert
|
| [Pre] run: [curl -L -o /usr/local/share/ca-certificates/IssueCA.crt http://path.to.cert] in cwd [/Users/andrew/Repositories/Personal/template-core]
| [Pre] error:
| % Total % Received % Xferd Average Speed Time Time Time Current
| Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: path.to.cert
|
| [Pre] run: [update-ca-certificates] in cwd [/Users/andrew/Repositories/Personal/template-core]
| [Pre] result:
|
| [Pre] run: [mkdir ~/.ssh && touch ~/.ssh/known_hosts && ssh-keyscan github.com >> ~/.ssh/known_hosts] in cwd [/Users/andrew/Repositories/Personal/template-core]
| [Pre] result:
| # github.com:22 SSH-2.0-babeld-dd067d10
| # github.com:22 SSH-2.0-babeld-dd067d10
| # github.com:22 SSH-2.0-babeld-dd067d10
| # github.com:22 SSH-2.0-babeld-dd067d10
| # github.com:22 SSH-2.0-babeld-dd067d10
|
| [Activation] JAVASCRIPT_ES has been set inactive, as none of these files has been found: ['.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml', '.eslintrc.js', '.eslintrc.cjs', 'package.json:eslintConfig']
| [Activation] JSON_NPM_PACKAGE_JSON_LINT has been set inactive, as none of these files has been found: ['package.json']
| [Activation] JSX_ESLINT has been set inactive, as none of these files has been found: ['.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml', '.eslintrc.js', '.eslintrc.cjs', 'package.json:eslintConfig']
| [Activation] KUBERNETES_HELM has been set inactive, as none of these files has been found: ['Chart.yml', 'Chart.yaml']
| [Activation] KUBERNETES_KUBESCAPE has been set inactive, as none of these files has been found: ['Chart.yml', 'Chart.yaml']
| [SemgrepLinter] Deactivated because no ruleset has been defined
| [Activation] SPELL_PROSELINT has been set inactive, as none of these files has been found: ['.proselintrc', 'proselint/config.json']
| [Activation] SPELL_VALE has been set inactive, as none of these files has been found: ['.vale.ini']
| [Activation] SQL_SQLFLUFF has been set inactive, as none of these files has been found: ['.sqlfluff']
| [Activation] SWIFT_SWIFTLINT has been set inactive, as none of these files has been found: ['.swiftlint.yml']
| [Activation] TSX_ESLINT has been set inactive, as none of these files has been found: ['.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml', '.eslintrc.js', '.eslintrc.cjs', 'package.json:eslintConfig']
| [Activation] TYPESCRIPT_ES has been set inactive, as none of these files has been found: ['.eslintrc.json', '.eslintrc.yml', '.eslintrc.yaml', '.eslintrc.js', '.eslintrc.cjs', 'package.json:eslintConfig']
| MARKDOWN_REMARK_LINT has been temporary disabled in MegaLinter, please use a previous MegaLinter version or wait for the next one !
| To receive reports as email, please set variable EMAIL_REPORTER_EMAIL
[MegaLinter/MegaLinter] ❓ ::endgroup::
[MegaLinter/MegaLinter] ❓ ::group::MegaLinter now collects the files to analyse (expand for details)
| Listing updated files in [/Users/andrew/Repositories/Personal/template-core] using git diff.
| Traceback (most recent call last):
| File "<frozen runpy>", line 198, in _run_module_as_main
| File "<frozen runpy>", line 88, in _run_code
| File "/usr/local/lib/python3.11/site-packages/megalinter-0.1-py3.11.egg/megalinter/run.py", line 14, in <module>
| linter.run()
| File "/usr/local/lib/python3.11/site-packages/megalinter-0.1-py3.11.egg/megalinter/MegaLinter.py", line 203, in run
| self.collect_files()
| File "/usr/local/lib/python3.11/site-packages/megalinter-0.1-py3.11.egg/megalinter/MegaLinter.py", line 645, in collect_files
| all_files = self.list_files_git_diff()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/usr/local/lib/python3.11/site-packages/megalinter-0.1-py3.11.egg/megalinter/MegaLinter.py", line 755, in list_files_git_diff
| repo.git.fetch("origin", f"{remote_ref}:{local_ref}")
| File "/usr/local/lib/python3.11/site-packages/GitPython-3.1.32-py3.11.egg/git/cmd.py", line 741, in <lambda>
| return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/usr/local/lib/python3.11/site-packages/GitPython-3.1.32-py3.11.egg/git/cmd.py", line 1315, in _call_process
| return self.execute(call, **exec_kwargs)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| File "/usr/local/lib/python3.11/site-packages/GitPython-3.1.32-py3.11.egg/git/cmd.py", line 1109, in execute
| raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
| git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
| cmdline: git fetch origin HEAD:refs/remotes/origin/HEAD
| stderr: 'git@github.com: Permission denied (publickey).
| fatal: Could not read from remote repository.
|
| Please make sure you have the correct access rights
| and the repository exists.'
[MegaLinter/MegaLinter] ❌ Failure - Main Lint with MegaLinter
[MegaLinter/MegaLinter] exit with `FAILURE`: 1
[MegaLinter/MegaLinter] ⭐ Run Main Archive production artifacts
[MegaLinter/MegaLinter] 🐳 docker cp src=/Users/andrew/.cache/act/actions-upload-artifact@v3/ dst=/var/run/act/actions/actions-upload-artifact@v3/
[MegaLinter/MegaLinter] 🐳 docker exec cmd=[node /var/run/act/actions/actions-upload-artifact@v3/dist/index.js] user= workdir=
[MegaLinter/MegaLinter] πŸ’¬ ::debug::followSymbolicLinks 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::implicitDescendants 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::omitBrokenSymbolicLinks 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::followSymbolicLinks 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::implicitDescendants 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::matchDirectories 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::omitBrokenSymbolicLinks 'true'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::Search path '/Users/andrew/Repositories/Personal/template-core/megalinter-reports'
[MegaLinter/MegaLinter] πŸ’¬ ::debug::Search path '/Users/andrew/Repositories/Personal/template-core/mega-linter.log'
(Hangs at this point)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment