Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
65e7580
tweaks for github gate
aiton-app Feb 25, 2023
ef6f9ea
revert RUN npm install -g ncm-cli
aiton-app Feb 28, 2023
f2c1663
add author
aiton-app Feb 28, 2023
26d911a
gtest annotations.json
aiton-app Mar 6, 2023
619c305
add
aiton-app Mar 6, 2023
1fe3720
a
aiton-app Mar 6, 2023
06549c3
.
aiton-app Mar 6, 2023
d28443e
.
aiton-app Mar 6, 2023
849e14b
.
aiton-app Mar 6, 2023
9e6990b
.
aiton-app Mar 6, 2023
44212c4
.
aiton-app Mar 6, 2023
2a91e73
.
aiton-app Mar 6, 2023
33f9356
.
aiton-app Mar 6, 2023
5882f27
.
aiton-app Mar 6, 2023
4217e28
.
aiton-app Mar 11, 2023
b8857af
.
aiton-app Mar 11, 2023
74c5969
.
aiton-app Mar 11, 2023
1a5b236
.
aiton-app Mar 11, 2023
1859f9d
.
aiton-app Mar 11, 2023
fe2176c
.
aiton-app Mar 11, 2023
0842559
chmod +x ncm.sh
aiton-app Mar 11, 2023
7aeece4
.
aiton-app Mar 11, 2023
3b2d266
.
aiton-app Mar 11, 2023
e0bb3b7
.
aiton-app Mar 11, 2023
21df454
.
aiton-app Mar 11, 2023
84bdedf
.
aiton-app Mar 11, 2023
58b607a
.
aiton-app Mar 11, 2023
ee7f961
add ncm-annotate
aiton-app Mar 20, 2023
696df91
add debian source list
italojs May 2, 2023
df86b44
add debian repository
italojs May 2, 2023
38a768b
install apps
italojs May 2, 2023
95b6066
not installing build-essential
italojs May 2, 2023
eecd479
debug
italojs May 2, 2023
53cabe2
debug
italojs May 2, 2023
17e0acd
debug
italojs May 2, 2023
dc05bb5
debug
italojs May 2, 2023
3a85e4d
debug
italojs May 2, 2023
315a2bd
adding build-essesntials pakgs one by one
italojs May 3, 2023
d42721c
debug
italojs May 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ncm-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- run: npm install
- name: NCM Report
id: report
uses: nodesource/ncm-report-github-action@v1.2.0
uses: nodesource/ncm-report-github-action@gate
with:
token: ${{ secrets.NCM_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ LABEL repository="https://github.com/nodesource/ncm-github-action"
LABEL homepage="https://nodesource.com"
LABEL maintainer="NodeSource"

RUN apt-get update && apt-get install -y g++ build-essential
RUN npm install -g ncm-cli

COPY entrypoint.sh /entrypoint.sh
RUN echo "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y g++ dpkg-dev gcc libc6-dev make
RUN npm install -g https://github.com/nodesource/ncm-cli.git#gate

COPY . /
ENTRYPOINT ["/entrypoint.sh"]
16 changes: 4 additions & 12 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/bash -l

if [[ "$2" = "yes" ]]
then
FORCE_COLOR=1 IS_GITHUB_ACTION=true NCM_TOKEN=$1 ncm report --long
elif [[ "$3" = "yes" ]]
then
FORCE_COLOR=1 IS_GITHUB_ACTION=true NCM_TOKEN=$1 ncm report --compliance
elif [[ "$4" = "yes" ]]
then
FORCE_COLOR=1 IS_GITHUB_ACTION=true NCM_TOKEN=$1 ncm report --security
else
FORCE_COLOR=1 IS_GITHUB_ACTION=true NCM_TOKEN=$1 ncm report
fi
FORCE_COLOR=1 IS_GITHUB_ACTION=true NCM_TOKEN=$1 ncm report --gate > report.json
cat report.json
cat ncm-annotate.sh
chmod +x ncm-annotate.sh
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "ncm-report-github-action",
"version": "1.0.0",
"description": "![NodeSource Certification process](https://github.com/nodesource/ncm-report-github-action/workflows/NodeSource%20Certification%20process/badge.svg?event=push)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nodesource/ncm-report-github-action.git"
},
"author": "NodeSource",
"license": "ISC",
"bugs": {
"url": "https://github.com/nodesource/ncm-report-github-action/issues"
},
"homepage": "https://github.com/nodesource/ncm-report-github-action#readme"
}