Skip to content

Commit

Permalink
Bump axios from 0.21.4 to 0.26.1 (#106)
Browse files Browse the repository at this point in the history
* Bump axios from 0.21.4 to 0.26.1

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 0.26.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v0.26.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update generated content

* Update ci workflow

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and crazy-max authored Apr 24, 2022
1 parent b24a796 commit 95c4b29
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
-
name: Build Windows executables
run: |
cd ./tests/app/
go mod download
GOOS=windows GOARCH=386 go build -o ./ghaction-virustotal-win32.exe -ldflags "-s -w"
GOOS=windows GOARCH=amd64 go build -o ./ghaction-virustotal-win64.exe -ldflags "-s -w"
working-directory: ./tests/app/
-
name: VirusTotal scan
id: vt
uses: ./
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
files: |
./tests/app/ghaction-virustotal-(win32|win64).exe
./tests/app/*.exe
-
name: Dump context
if: always()
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.1",
"axios": "^0.21.4",
"axios": "^0.26.1",
"form-data": "^4.0.0",
"mime": "^3.0.0"
},
Expand Down
12 changes: 3 additions & 9 deletions src/virustotal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class VirusTotal {
this.instance = axios.create({
baseURL: 'https://www.virustotal.com/api/v3',
headers: {
'x-apikey': apiKey
'x-apikey': apiKey ?? ''
},
maxContentLength: Infinity,
maxBodyLength: Infinity
Expand All @@ -43,10 +43,7 @@ export class VirusTotal {

return this.instance
.post('/files', fd.getBuffer(), {
headers: {
...this.instance.defaults.headers,
...fd.getHeaders()
}
headers: fd.getHeaders()
})
.then(upload => {
const data = upload.data.data as UploadData;
Expand All @@ -73,10 +70,7 @@ export class VirusTotal {

return this.instance
.post('/monitor/items', fd.getBuffer(), {
headers: {
...this.instance.defaults.headers,
...fd.getHeaders()
}
headers: fd.getHeaders()
})
.then(upload => {
const data = upload.data.data as UploadData;
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1285,12 +1285,12 @@ asynckit@^0.4.0:
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=

axios@^0.21.4:
version "0.21.4"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"
integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==
axios@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==
dependencies:
follow-redirects "^1.14.0"
follow-redirects "^1.14.8"

babel-jest@^27.5.1:
version "27.5.1"
Expand Down Expand Up @@ -1988,7 +1988,7 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3"
integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==

follow-redirects@^1.14.0:
follow-redirects@^1.14.8:
version "1.14.9"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7"
integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==
Expand Down

0 comments on commit 95c4b29

Please sign in to comment.