luke142367 / docker-lint-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub action for linting Docker Files
A GitHub action for linting Docker Files
Hi
I'm trying to use you action
But receiving next error
Error Error: Received status code 403
at IncomingMessage.res.on (/.docker-lint-action/src/request.js:12:23)
at IncomingMessage.emit (events.js:198:15)
at endReadableNT (_stream_readable.js:1139:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
{"message":"You must authenticate via a GitHub App.","documentation_url":"https://developer.github.com/v3/checks/runs/#create-a-check-run"}
Dockerfile Lint failed
Could you please help?
Thanks
In case of such action was added to the repo with existing Dockerfile
it's started to fail build even if Dockerfile
isn't changed. As a result, no comments on what is wrong. It would be nice to print found issues into the log output.
Hi,
I use schedule to update my Docker images.
It seem that your action fail on scheduled build without author :
const { owner: { login: owner }, } = repository;
^
TypeError: Cannot destructure property `owner` of 'undefined' or 'null'.
at Object.<anonymous> (/.docker-lint-action/build/check.js:22:38)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/.docker-lint-action/build/main.js:16:17)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
Dockerfile Lint failed
Any idea why I'm getting this?
2020-09-30T08:02:04.4619282Z ##[group]Run luke142367/[email protected]
2020-09-30T08:02:04.4619695Z with:
2020-09-30T08:02:04.4619977Z target: docker/Dockerfile-*
2020-09-30T08:02:04.4620248Z env:
2020-09-30T08:02:04.4621272Z GITHUB_TOKEN: ***
2020-09-30T08:02:04.4621519Z ##[endgroup]
2020-09-30T08:02:04.4652538Z ##[command]/usr/bin/docker run --name aac2aab726ce5aa9da47fe923b70b53374372b_888938 --label aac2aa --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_TARGET -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/arcor2/arcor2":"/github/workspace" aac2aa:b726ce5aa9da47fe923b70b53374372b
2020-09-30T08:02:05.2247762Z Error HttpError: Resource not accessible by integration
2020-09-30T08:02:05.2249254Z at response.text.then.message (/.docker-lint-action/node_modules/@octokit/request/dist-node/index.js:66:23)
2020-09-30T08:02:05.2250159Z at processTicksAndRejections (internal/process/task_queues.js:86:5)
2020-09-30T08:02:05.2282012Z Dockerfile Lint failed
Hi @luke142367
When triggering a workflow on pull_request it's creating an Unnamed Workflow and you can't see the annotations in your PRs changed files.
More detailed described here?
https://github.community/t5/GitHub-Actions/Action-on-PR-and-subsequent-commit-to-PR-gives-quot-unnamed/m-p/36008#M2415
Have you encountered such behaviour?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.