ninny 0.1.18 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac4912e477ddf25380dd14cbf7dad07184c9b7f002d781e781917112f45cc013
4
- data.tar.gz: 6a144e8bd809018812ad9f441aa39db5c7853bb3e0d9224bdc50eef1d6633f78
3
+ metadata.gz: 4bb254fc2d80a03a8a2fe7cd6c9eef06eebcefd7d58df1e648ef30103c7fd34a
4
+ data.tar.gz: 9a7822d0ceddac325c321738b5e71774cd2d190e3e7a312601159a2fca322e72
5
5
  SHA512:
6
- metadata.gz: 436dd448436ce48fe2658d08b3cc68b1aedbda86796c836131b8f9845af39507ff99c806f276edafeebe57799db7086ff667c17a509466ec83ab38df22d7796a
7
- data.tar.gz: dedd4a379d28c591424f2c40e7255d1151a278f9e8d2b1df7269ee5996edeb9d26339bf4f41582907acba0d06733b16b698a12a2364295b237ea33c9e9659273
6
+ metadata.gz: 7e6e88099872539c132668e38994d5b4e4ddbb0533ff002cec676a8940f7763bb7f0586053364d00ba9337abc4807c2a21d6388f61baa825f47614dae21d6a54
7
+ data.tar.gz: ef3426925522993daaeef71280e80964177ca50280af4d27807b5cc7d96fb50d649513dd32a79880b3c2eddcdf287dc41d82c9be70ce67811f06ef83e37b96d2
@@ -16,16 +16,16 @@ jobs:
16
16
  packages: write
17
17
  steps:
18
18
  - uses: actions/checkout@v2
19
- - uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
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@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
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@ad44023a93711e3deb337508980b4b5e9bcdc5dc
28
+ - uses: docker/build-push-action@v2
29
29
  with:
30
30
  context: .
31
31
  push: true
@@ -0,0 +1,8 @@
1
+ [allowlist]
2
+ description = 'A list of commits and secrets to skip when scanning for secrets'
3
+ commits = [
4
+ 'ExampleCommit'
5
+ ]
6
+ regexes = [
7
+ 'ExampleSecret'
8
+ ]
@@ -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
@@ -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.13.0
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.0
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.0.2
1
+ 3.1.1
data/Dockerfile CHANGED
@@ -1,3 +1,3 @@
1
- FROM ruby:3.0.2-alpine
1
+ FROM ruby:3.1.1-alpine
2
2
  RUN apk add git
3
3
  RUN gem install ninny
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/dispatchinc/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.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ninny
4
- VERSION = '0.1.18'
4
+ VERSION = '0.1.21'
5
5
  end
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/dispatchinc/ninny'
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.18
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: 2021-08-20 00:00:00.000000000 Z
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/dispatchinc/ninny
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.2.22
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'