Skip to content

Commit

Permalink
Update dependency and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhet committed Sep 28, 2020
1 parent 15d62b0 commit fbf07bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Scan Docker Repository
uses: dhet/[email protected]
uses: dhet/[email protected].1
with:
image: mhart/alpine-node
max-age-minutes: 15
Expand Down
11 changes: 9 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,12 @@ function convertBody(buffer, headers) {
// html4
if (!res && str) {
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
if (!res) {
res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
if (res) {
res.pop(); // drop last quote
}
}

if (res) {
res = /charset=(.*)/i.exec(res.pop());
Expand Down Expand Up @@ -1734,7 +1740,7 @@ function fetch(url, opts) {
// HTTP fetch step 5.5
switch (request.redirect) {
case 'error':
reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
finalize();
return;
case 'manual':
Expand Down Expand Up @@ -1773,7 +1779,8 @@ function fetch(url, opts) {
method: request.method,
body: request.body,
signal: request.signal,
timeout: request.timeout
timeout: request.timeout,
size: request.size
};

// HTTP-redirect fetch step 9
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scan-docker-tags-action",
"version": "0.0.1",
"version": "1.0.1",
"description": "A GitHub action for scanning Docker repositories for recently-updated tags",
"main": "index.js",
"author": "",
Expand All @@ -10,7 +10,7 @@
},
"dependencies": {
"@actions/core": "^1.2.4",
"node-fetch": "^2.6.0"
"node-fetch": "^2.6.1"
},
"devDependencies": {
"@zeit/ncc": "^0.22.3",
Expand Down

0 comments on commit fbf07bd

Please sign in to comment.