ninny 0.1.18 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +3 -3
- data/.github/workflows/gitleaks.toml +8 -0
- data/.github/workflows/scheduled.yml +1 -18
- data/.github/workflows/test.yml +33 -2
- data/.rubocop.yml +4 -1
- data/.ruby-version +1 -1
- data/Dockerfile +1 -1
- data/README.md +1 -1
- data/lib/ninny/repository/gitlab.rb +2 -2
- data/lib/ninny/version.rb +1 -1
- data/ninny.gemspec +2 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb254fc2d80a03a8a2fe7cd6c9eef06eebcefd7d58df1e648ef30103c7fd34a
|
4
|
+
data.tar.gz: 9a7822d0ceddac325c321738b5e71774cd2d190e3e7a312601159a2fca322e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e6e88099872539c132668e38994d5b4e4ddbb0533ff002cec676a8940f7763bb7f0586053364d00ba9337abc4807c2a21d6388f61baa825f47614dae21d6a54
|
7
|
+
data.tar.gz: ef3426925522993daaeef71280e80964177ca50280af4d27807b5cc7d96fb50d649513dd32a79880b3c2eddcdf287dc41d82c9be70ce67811f06ef83e37b96d2
|
data/.github/workflows/build.yml
CHANGED
@@ -16,16 +16,16 @@ jobs:
|
|
16
16
|
packages: write
|
17
17
|
steps:
|
18
18
|
- uses: actions/checkout@v2
|
19
|
-
- uses: docker/login-action@
|
19
|
+
- uses: docker/login-action@v1
|
20
20
|
with:
|
21
21
|
registry: ${{ env.REGISTRY }}
|
22
22
|
username: ${{ github.actor }}
|
23
23
|
password: ${{ secrets.GITHUB_TOKEN }}
|
24
|
-
- uses: docker/metadata-action@
|
24
|
+
- uses: docker/metadata-action@v3
|
25
25
|
id: meta
|
26
26
|
with:
|
27
27
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
28
|
-
- uses: docker/build-push-action@
|
28
|
+
- uses: docker/build-push-action@v2
|
29
29
|
with:
|
30
30
|
context: .
|
31
31
|
push: true
|
@@ -12,19 +12,11 @@ jobs:
|
|
12
12
|
fetch-depth: 0
|
13
13
|
- uses: ruby/setup-ruby@v1
|
14
14
|
with:
|
15
|
-
ruby-version: 3.0
|
16
15
|
bundler-cache: true
|
17
16
|
- run: |
|
18
17
|
gem install bundler-audit
|
19
18
|
bundler-audit update
|
20
19
|
bundler-audit
|
21
|
-
|
22
|
-
if [ $? -eq 0 ]; then
|
23
|
-
echo "No gem vulnerabilities found."
|
24
|
-
else
|
25
|
-
echo "Gem vulnerabilities found!"
|
26
|
-
exit 1
|
27
|
-
fi
|
28
20
|
bundle-outdated:
|
29
21
|
runs-on: ubuntu-latest
|
30
22
|
steps:
|
@@ -33,14 +25,5 @@ jobs:
|
|
33
25
|
fetch-depth: 0
|
34
26
|
- uses: ruby/setup-ruby@v1
|
35
27
|
with:
|
36
|
-
ruby-version: 3.0
|
37
28
|
bundler-cache: true
|
38
|
-
- run:
|
39
|
-
bundle outdated --strict
|
40
|
-
|
41
|
-
if [ $? -eq 0 ]; then
|
42
|
-
echo "No outdated gems found."
|
43
|
-
else
|
44
|
-
echo "Outdated gems found!"
|
45
|
-
exit 1
|
46
|
-
fi
|
29
|
+
- run: bundle outdated --strict
|
data/.github/workflows/test.yml
CHANGED
@@ -5,13 +5,16 @@ on:
|
|
5
5
|
pull_request:
|
6
6
|
branches: [ main ]
|
7
7
|
|
8
|
+
env:
|
9
|
+
GITLEAKS_VERSION: v8.2.7
|
10
|
+
|
8
11
|
jobs:
|
9
12
|
test:
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
strategy:
|
12
15
|
fail-fast: false
|
13
16
|
matrix:
|
14
|
-
ruby: [2.6, 2.7, 3.0]
|
17
|
+
ruby: [2.6, 2.7, 3.0, 3.1]
|
15
18
|
steps:
|
16
19
|
- uses: actions/checkout@v2
|
17
20
|
with:
|
@@ -28,6 +31,34 @@ jobs:
|
|
28
31
|
- uses: actions/checkout@v2
|
29
32
|
with:
|
30
33
|
fetch-depth: 0
|
31
|
-
- uses: HeRoMo/pronto-action@v1.
|
34
|
+
- uses: HeRoMo/pronto-action@v1.28.0
|
32
35
|
with:
|
33
36
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
37
|
+
gitleaks:
|
38
|
+
if: github.EVENT_NAME == 'pull_request'
|
39
|
+
runs-on: ubuntu-latest
|
40
|
+
steps:
|
41
|
+
- uses: actions/checkout@v2
|
42
|
+
with:
|
43
|
+
fetch-depth: 0
|
44
|
+
- run: |
|
45
|
+
curl -H "Accept: application/vnd.github.v3.raw" \
|
46
|
+
-L "https://api.github.com/repos/zricethezav/gitleaks/contents/config/gitleaks.toml?ref=${{ env.GITLEAKS_VERSION }}" \
|
47
|
+
>> ${{ github.WORKSPACE }}/.github/workflows/original.toml
|
48
|
+
sed "/\[allowlist\]/,/^$/d" ${{ github.WORKSPACE }}/.github/workflows/original.toml >> ${{ github.WORKSPACE }}/.github/workflows/official.toml
|
49
|
+
cat .github/workflows/gitleaks.toml >> .github/workflows/official.toml
|
50
|
+
if [[ ${{ github.REF }} == 'refs/heads/main' ]]; then
|
51
|
+
CURRENT_COMMIT="${{ github.SHA }}"
|
52
|
+
else
|
53
|
+
CURRENT_COMMIT="${{ github.EVENT.PULL_REQUEST.HEAD.SHA }}"
|
54
|
+
fi
|
55
|
+
echo "LOG_OPTS='^origin/main $CURRENT_COMMIT'" >> $GITHUB_ENV
|
56
|
+
- uses: addnab/docker-run-action@v3
|
57
|
+
with:
|
58
|
+
image: zricethezav/gitleaks:${{ env.GITLEAKS_VERSION }}
|
59
|
+
options: -v ${{ github.WORKSPACE }}:/app
|
60
|
+
run: |
|
61
|
+
cd /app
|
62
|
+
gitleaks detect --verbose --source='./' \
|
63
|
+
--config='.github/workflows/official.toml' \
|
64
|
+
--log-opts=${{ env.LOG_OPTS }}
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
AllCops:
|
2
2
|
NewCops: enable
|
3
3
|
SuggestExtensions: false
|
4
|
-
TargetRubyVersion: 3.
|
4
|
+
TargetRubyVersion: 3.1
|
5
5
|
Exclude:
|
6
6
|
- vendor/**/*
|
7
7
|
|
8
8
|
Gemspec/RequiredRubyVersion:
|
9
9
|
Enabled: false
|
10
10
|
|
11
|
+
Gemspec/RequireMFA:
|
12
|
+
Enabled: false
|
13
|
+
|
11
14
|
Style/Documentation:
|
12
15
|
Enabled: false
|
13
16
|
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.1.1
|
data/Dockerfile
CHANGED
data/README.md
CHANGED
@@ -103,7 +103,7 @@ To set up your local machine to push to RubyGems via the API, see the [RubyGems
|
|
103
103
|
|
104
104
|
## Contributing
|
105
105
|
|
106
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
106
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/dispatchitinc/ninny. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
107
107
|
|
108
108
|
## Code of Conduct
|
109
109
|
|
@@ -22,7 +22,7 @@ module Ninny
|
|
22
22
|
target_branch: Ninny.project_config.deploy_branch,
|
23
23
|
state: 'opened'
|
24
24
|
}
|
25
|
-
).last
|
25
|
+
).auto_paginate.last
|
26
26
|
)
|
27
27
|
end
|
28
28
|
|
@@ -31,7 +31,7 @@ module Ninny
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def open_pull_requests
|
34
|
-
gitlab.merge_requests(project_id, { state: 'opened' }).map { |mr| to_pr(mr) }
|
34
|
+
gitlab.merge_requests(project_id, { state: 'opened' }).auto_paginate.map { |mr| to_pr(mr) }
|
35
35
|
end
|
36
36
|
|
37
37
|
def pull_request(id)
|
data/lib/ninny/version.rb
CHANGED
data/ninny.gemspec
CHANGED
@@ -13,7 +13,8 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.summary = 'ninny (n): an foolish person, see: git'
|
15
15
|
spec.description = 'Ninny is a command line workflow for git with GitLab'
|
16
|
-
spec.homepage = 'https://github.com/
|
16
|
+
spec.homepage = 'https://github.com/dispatchitinc/ninny'
|
17
|
+
spec.metadata = { 'rubygems_mfa_required' => 'false' }
|
17
18
|
|
18
19
|
# Specify which files should be added to the gem when it is released.
|
19
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dispatch Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -272,6 +272,7 @@ extra_rdoc_files: []
|
|
272
272
|
files:
|
273
273
|
- ".github/pull_request_template.md"
|
274
274
|
- ".github/workflows/build.yml"
|
275
|
+
- ".github/workflows/gitleaks.toml"
|
275
276
|
- ".github/workflows/scheduled.yml"
|
276
277
|
- ".github/workflows/test.yml"
|
277
278
|
- ".gitignore"
|
@@ -309,10 +310,11 @@ files:
|
|
309
310
|
- lib/ninny/user_config.rb
|
310
311
|
- lib/ninny/version.rb
|
311
312
|
- ninny.gemspec
|
312
|
-
homepage: https://github.com/
|
313
|
+
homepage: https://github.com/dispatchitinc/ninny
|
313
314
|
licenses:
|
314
315
|
- MIT
|
315
|
-
metadata:
|
316
|
+
metadata:
|
317
|
+
rubygems_mfa_required: 'false'
|
316
318
|
post_install_message:
|
317
319
|
rdoc_options: []
|
318
320
|
require_paths:
|
@@ -328,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
330
|
- !ruby/object:Gem::Version
|
329
331
|
version: '0'
|
330
332
|
requirements: []
|
331
|
-
rubygems_version: 3.
|
333
|
+
rubygems_version: 3.3.7
|
332
334
|
signing_key:
|
333
335
|
specification_version: 4
|
334
336
|
summary: 'ninny (n): an foolish person, see: git'
|