bltavares / actions Goto Github PK
View Code? Open in Web Editor NEWCollection of linters and fixers as Github Actions - Alpha
Home Page: https://github.com/features/actions
Collection of linters and fixers as Github Actions - Alpha
Home Page: https://github.com/features/actions
The base images used in kubeval
(K8s linter) and hadolint
are different but the binaries used in entrypoint.sh
are the same. The question is what is the difference in both the base images ?
Base Image of kubeval
:- garethr/kubeval:0.7.3
Base Image of hadolint
:- hadolint/hadolint:v1.15.0
Binary package used in both the linter's entrypoint.sh is hadolint
.
Hi,
For the Terraform actions it seems that there is an issue with the if that choses the comment text: fix terrafrom
fails, but fix bltavaresactions
works.
I created an example Pull Request here that shows the issue: Vlaaaaaaad/tf-actions-bug#2
I have no idea why that ||
(or) would fail since $1
is clearly set to terraform, but it does. Any ideas?
I really like this project and would like to consider contributing to it!
Would it be possible to make this project available under an open source license? Thank you for your hard work!
Today I've learned that Alpine does not keep older versions of packages on their repositories.
Which means that all actions are broken.
Two options to investigate:
Error when using tag 1.0.7
ERROR: unsatisfiable constraints:
bash-5.0.0-r0:
breaks: world[bash~4]
Full log
$ docker build . -t github-action-prettier
Sending build context to Docker daemon 2.56kB
Step 1/13 : FROM node:alpine
---> 4eb3543f9812
Step 2/13 : LABEL "com.github.actions.name"="prettier"
---> Running in 023a3f8276ab
Removing intermediate container 023a3f8276ab
---> f51e78d1455c
Step 3/13 : LABEL "com.github.actions.description"="An opinionated code formatter, Supports many languages, Has few options"
---> Running in cc0599987dc4
Removing intermediate container cc0599987dc4
---> 439b5be3eeae
Step 4/13 : LABEL "com.github.actions.icon"="user-check"
---> Running in d52ccf28b6a6
Removing intermediate container d52ccf28b6a6
---> 3ac57da7b055
Step 5/13 : LABEL "com.github.actions.color"="purple"
---> Running in a18c37f6cfc5
Removing intermediate container a18c37f6cfc5
---> a38f2678a129
Step 6/13 : LABEL "repository"="http://github.com/bltavares/actions"
---> Running in 600d79b331f4
Removing intermediate container 600d79b331f4
---> 5afdb7dedda8
Step 7/13 : LABEL "homepage"="http://github.com/bltavares/actions"
---> Running in 151de0024859
Removing intermediate container 151de0024859
---> bf798cb28915
Step 8/13 : LABEL "maintainer"="Bruno Tavares <[email protected]>"
---> Running in 2eb3de26ec71
Removing intermediate container 2eb3de26ec71
---> e736cc6ed172
Step 9/13 : RUN npm install -g [email protected]
---> Running in 5dce2af44e5c
/usr/local/bin/prettier -> /usr/local/lib/node_modules/prettier/bin-prettier.js
+ [email protected]
added 1 package from 1 contributor in 0.663s
Removing intermediate container 5dce2af44e5c
---> 378e65f2cef5
Step 10/13 : RUN apk --no-cache add curl~=7 jq~=1.6 bash~=4 git~=2
---> Running in f841e94b9286
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
bash-5.0.0-r0:
breaks: world[bash~4]
The command '/bin/sh -c apk --no-cache add curl~=7 jq~=1.6 bash~=4 git~=2' returned a non-zero code: 1
When running:
name: PR Review
on: [pull_request_review]
jobs:
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: Run Clippy
uses: bltavares/actions/clippy@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "autofix"
I get the output:
2019-08-25T23:12:00.1377418Z ##[group]Run bltavares/actions/clippy@master
2019-08-25T23:12:00.1453979Z with:
2019-08-25T23:12:00.1454073Z args: autofix
2019-08-25T23:12:00.1454143Z env:
2019-08-25T23:12:00.1454295Z GITHUB_TOKEN: ***
2019-08-25T23:12:00.1454346Z ##[endgroup]
2019-08-25T23:12:00.1792782Z ##[command]/usr/bin/docker run --name fe0f7ee54c96b9554861bdaedbbe4553ba06_259693 --label 29fe0f --workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -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/{omitted}/{omitted}":"/github/workspace" 29fe0f:7ee54c96b9554861bdaedbbe4553ba06 autofix
2019-08-25T23:12:00.7708717Z error: could not find `Cargo.toml` in `/github/workspace` or any parent directory
2019-08-25T23:12:01.1514235Z ##[error]Docker run failed with exit code 101
2019-08-25T23:12:01.1641246Z Cleaning up orphan processes
For some reason, I can't install the required libs.
Step 9/14 : RUN apt-get update -qq && apt-get install -qqy --no-install-recommends curl=7.52* jq=1.5* bash=4.4* git=1:2.11* make=4.1* gcc=4:6.3* && rm -rf /var/lib/apt/lists/*
---> Running in 5a6c9f0ff7a1
E: Version '7.52*' for 'curl' was not found
E: Version '4.4*' for 'bash' was not found
E: Version '1:2.11*' for 'git' was not found
E: Version '4.1*' for 'make' was not found
E: Version '4:6.3*' for 'gcc' was not found
### FAILED rubocop 20:23:05Z (31.158s)
I found that for some linters there is apk
instead of apt-get update
Could this be the issue?
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.