Skip to content

Commit 8d17b82

Browse files
authored
Bump winston from 3.8.2 to 3.9.0 (#104)
1 parent 91fba51 commit 8d17b82

File tree

9 files changed

+136
-148
lines changed

9 files changed

+136
-148
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
custom: ['https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH']
33
github: ['fabasoad']
4-
issuehunt: fabasoad
54
ko_fi: fabasoad
65
liberapay: fabasoad
7-
open_collective: fabasoad

.github/workflows/functional-tests.yml

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,44 @@ on:
88
pull_request:
99

1010
jobs:
11-
cloudmersive:
12-
name: Cloudmersive
11+
detect:
12+
name: ${{ matrix.provider }}
1313
timeout-minutes: 5
1414
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
include:
19+
- provider: cloudmersive
20+
api-key: CLOUDMERSIVE_API_KEY
21+
threshold: 0.32
22+
- provider: deepai
23+
api-key: DEEPAI_API_KEY
24+
threshold: 0.39
25+
- provider: picpurify
26+
api-key: PICPURIFY_API_KEY
27+
threshold: 0.97
28+
- provider: sightengine
29+
api-user: SIGHTENGINE_API_USER
30+
api-key: SIGHTENGINE_API_SECRET
31+
threshold: 0.8
1532
steps:
1633
- uses: actions/checkout@v3
34+
- name: Prepare API key
35+
id: secrets
36+
run: |
37+
if [ "${{ matrix.provider }}" = "sightengine" ]; then
38+
echo "api-key=${{ secrets[matrix.api-user] }},${{ secrets[matrix.api-key] }}" >> $GITHUB_OUTPUT
39+
else
40+
echo "api-key=${{ secrets[matrix.api-key] }}" >> $GITHUB_OUTPUT
41+
fi
42+
- name: Download test file
43+
run: |
44+
curl https://images-na.ssl-images-amazon.com/images/I/91cDPlxcRiL._SL1500_.jpg --output test.jpg
45+
git add test.jpg
1746
- uses: ./
1847
with:
1948
github_token: ${{ secrets.GITHUB_TOKEN }}
20-
provider: cloudmersive
21-
api_key: ${{ secrets.CLOUDMERSIVE_API_KEY }}
22-
threshold: 0.32
23-
deepai:
24-
name: Deepai
25-
timeout-minutes: 5
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v3
29-
- uses: ./
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
provider: deepai
33-
api_key: ${{ secrets.DEEPAI_API_KEY }}
34-
threshold: 0.39
35-
picpurify:
36-
name: PicPurify
37-
if: false # TODO: fix it
38-
timeout-minutes: 5
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v3
42-
- uses: ./
43-
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
provider: picpurify
46-
api_key: ${{ secrets.PICPURIFY_API_KEY }}
47-
threshold: 0.97
48-
sightengine:
49-
name: SightEngine
50-
timeout-minutes: 5
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@v3
54-
- uses: ./
55-
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
provider: sightengine
58-
api_key: ${{ secrets.SIGHTENGINE_API_USER }},${{ secrets.SIGHTENGINE_API_SECRET }}
59-
threshold: 0.8
49+
provider: ${{ matrix.provider }}
50+
api_key: ${{ steps.secrets.outputs.api-key }}
51+
threshold: ${{ matrix.threshold }}

.github/workflows/create-release.yml renamed to .github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
name: Create release
2+
name: Release
33

44
on:
55
push:
66
tags:
77
- 'v*.*.*'
88

99
jobs:
10-
create_release:
11-
name: Release
10+
create-release:
11+
name: Create release
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3

.github/workflows/security-tests.yml renamed to .github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Security Tests
2+
name: Security
33

44
on:
55
push:

.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
44
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/fabasoad/nsfw-detection-action?include_prereleases)
5-
![Unit Tests](https://github.com/fabasoad/nsfw-detection-action/workflows/Unit%20Tests/badge.svg)
6-
![Functional Tests](https://github.com/fabasoad/nsfw-detection-action/workflows/Functional%20Tests/badge.svg)
7-
![Security Tests](https://github.com/fabasoad/nsfw-detection-action/workflows/Security%20Tests/badge.svg)
5+
![unit-tests](https://github.com/fabasoad/nsfw-detection-action/actions/workflows/unit-tests.yml/badge.svg)
6+
![functional-tests](https://github.com/fabasoad/nsfw-detection-action/actions/workflows/functional-tests.yml/badge.svg)
7+
![security](https://github.com/fabasoad/nsfw-detection-action/actions/workflows/security.yml/badge.svg)
88
![pre-commit](https://github.com/fabasoad/nsfw-detection-action/actions/workflows/pre-commit.yml/badge.svg)
99
[![Maintainability](https://api.codeclimate.com/v1/badges/4b83792aebf367a33f6c/maintainability)](https://codeclimate.com/github/fabasoad/nsfw-detection-action/maintainability)
1010
[![Test Coverage](https://api.codeclimate.com/v1/badges/4b83792aebf367a33f6c/test_coverage)](https://codeclimate.com/github/fabasoad/nsfw-detection-action/test_coverage)

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"@actions/core": "1.10.0",
2323
"@actions/github": "5.1.1",
2424
"form-data": "4.0.0",
25-
"winston": "3.8.2"
25+
"winston": "3.9.0"
2626
},
2727
"devDependencies": {
28-
"@octokit/types": "8.2.1",
28+
"@octokit/types": "9.2.3",
2929
"@types/chai": "4.3.5",
3030
"@types/glob": "8.1.0",
3131
"@types/jest": "29.5.1",
32-
"@types/node": "18.16.5",
33-
"@typescript-eslint/eslint-plugin": "5.59.2",
34-
"@typescript-eslint/parser": "5.59.2",
32+
"@types/node": "20.2.5",
33+
"@typescript-eslint/eslint-plugin": "5.59.8",
34+
"@typescript-eslint/parser": "5.59.8",
3535
"@vercel/ncc": "0.36.1",
36-
"eslint": "8.40.0",
36+
"eslint": "8.41.0",
3737
"eslint-config-google": "0.14.0",
3838
"jest": "29.5.0",
3939
"jest-circus": "29.5.0",

0 commit comments

Comments
 (0)