itamae-plugin-resource-encrypted_remote_file 0.0.3 → 0.0.4
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 +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +12 -32
- data/CHANGELOG.md +7 -1
- data/README.md +1 -1
- data/itamae-plugin-resource-encrypted_remote_file.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32520a2c7ee847e11c25d72d7ba42362713b7c0eab9bf6914d5d7b1aaf14190d
|
|
4
|
+
data.tar.gz: 32bdb6a6509b7178d2ba2b4394e5807683579be3f2db8ad2eaab2502429e6e32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff8fde74dddda509a51439be3894c8640c7f4bdd87175ae9b5b3adb7e069663f84ff1e3153034bdc87eab1571eea2200d9932b694218183a271ee97de3b00bb1
|
|
7
|
+
data.tar.gz: a8401d64d8356810e5f110d903cb4954770413b9b665658072ed2e58574c5eab327154b52bd72c754671ed926bad793e59d4340d3ec52e8ada98fa02b87336c7
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
updates:
|
|
5
|
+
- package-ecosystem: github-actions
|
|
6
|
+
directory: /
|
|
7
|
+
schedule:
|
|
8
|
+
interval: weekly
|
|
9
|
+
cooldown:
|
|
10
|
+
default-days: 7
|
|
11
|
+
assignees:
|
|
12
|
+
- sue445
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/itamae-plugin-resource-encrypted_remote_file'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/itamae-plugin-resource-encrypted_remote_file
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -12,9 +12,6 @@ on:
|
|
|
12
12
|
schedule:
|
|
13
13
|
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
|
14
14
|
|
|
15
|
-
env:
|
|
16
|
-
CI: "true"
|
|
17
|
-
|
|
18
15
|
jobs:
|
|
19
16
|
test:
|
|
20
17
|
runs-on: ubuntu-latest
|
|
@@ -24,7 +21,7 @@ jobs:
|
|
|
24
21
|
|
|
25
22
|
matrix:
|
|
26
23
|
ruby:
|
|
27
|
-
- 2.
|
|
24
|
+
- "2.4"
|
|
28
25
|
image:
|
|
29
26
|
- centos:7
|
|
30
27
|
- centos:8
|
|
@@ -34,26 +31,14 @@ jobs:
|
|
|
34
31
|
- amazonlinux:2
|
|
35
32
|
|
|
36
33
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
|
38
35
|
|
|
39
|
-
- uses:
|
|
36
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
40
37
|
with:
|
|
41
38
|
ruby-version: ${{ matrix.ruby }}
|
|
39
|
+
bundler-cache: true
|
|
42
40
|
|
|
43
|
-
-
|
|
44
|
-
uses: actions/cache@v1
|
|
45
|
-
id: cache_gem
|
|
46
|
-
with:
|
|
47
|
-
path: vendor/bundle
|
|
48
|
-
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
|
49
|
-
restore-keys: |
|
|
50
|
-
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
|
51
|
-
|
|
52
|
-
- name: bundle update
|
|
53
|
-
run: |
|
|
54
|
-
set -xe
|
|
55
|
-
bundle config path vendor/bundle
|
|
56
|
-
bundle update --jobs $(nproc) --retry 3
|
|
41
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
|
57
42
|
|
|
58
43
|
- name: Run Itamae
|
|
59
44
|
run: |
|
|
@@ -70,15 +55,13 @@ jobs:
|
|
|
70
55
|
DOCKER_IMAGE: itamae-plugin:latest
|
|
71
56
|
|
|
72
57
|
- name: Slack Notification (not success)
|
|
73
|
-
uses:
|
|
58
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
74
59
|
if: "! success()"
|
|
75
60
|
continue-on-error: true
|
|
76
61
|
with:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
81
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
62
|
+
status: ${{ job.status }}
|
|
63
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
64
|
+
matrix: ${{ toJson(matrix) }}
|
|
82
65
|
|
|
83
66
|
notify:
|
|
84
67
|
needs:
|
|
@@ -88,12 +71,9 @@ jobs:
|
|
|
88
71
|
|
|
89
72
|
steps:
|
|
90
73
|
- name: Slack Notification (success)
|
|
91
|
-
uses:
|
|
74
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
92
75
|
if: always()
|
|
93
76
|
continue-on-error: true
|
|
94
77
|
with:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
icon_emoji: ":octocat:"
|
|
98
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
99
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
78
|
+
status: ${{ job.status }}
|
|
79
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## master
|
|
2
|
-
[full changelog](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/compare/v0.0.
|
|
2
|
+
[full changelog](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/compare/v0.0.4...master)
|
|
3
|
+
|
|
4
|
+
## [0.0.4](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/releases/tag/v0.0.4) (2025/11/29)
|
|
5
|
+
[full changelog](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/compare/v0.0.3...v0.0.4)
|
|
6
|
+
|
|
7
|
+
* Release gem from GitHub Actions
|
|
8
|
+
* https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/pull/34
|
|
3
9
|
|
|
4
10
|
## 0.0.3 (2021/11/20)
|
|
5
11
|
[full changelog](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/compare/v0.0.2...v0.0.3)
|
data/README.md
CHANGED
|
@@ -5,7 +5,7 @@ encrypt secret data (e.g. id_rsa), and forward decrypted file to remote.
|
|
|
5
5
|
This is like to [knife-solo_data_bag](https://github.com/thbishop/knife-solo_data_bag)
|
|
6
6
|
|
|
7
7
|
[](http://badge.fury.io/rb/itamae-plugin-resource-encrypted_remote_file)
|
|
8
|
-
[](https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/actions/workflows/test.yml)
|
|
9
9
|
[](https://codeclimate.com/github/sue445/itamae-plugin-resource-encrypted_remote_file)
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "itamae-plugin-resource-encrypted_remote_file"
|
|
7
|
-
spec.version = "0.0.
|
|
7
|
+
spec.version = "0.0.4"
|
|
8
8
|
spec.authors = ["sue445"]
|
|
9
9
|
spec.email = ["sue445@sue445.net"]
|
|
10
10
|
spec.licenses = ["MIT"]
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itamae-plugin-resource-encrypted_remote_file
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: itamae
|
|
@@ -101,6 +100,8 @@ executables: []
|
|
|
101
100
|
extensions: []
|
|
102
101
|
extra_rdoc_files: []
|
|
103
102
|
files:
|
|
103
|
+
- ".github/dependabot.yml"
|
|
104
|
+
- ".github/workflows/release_gem.yml"
|
|
104
105
|
- ".github/workflows/test.yml"
|
|
105
106
|
- ".gitignore"
|
|
106
107
|
- ".rspec"
|
|
@@ -123,7 +124,6 @@ metadata:
|
|
|
123
124
|
changelog_uri: https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file/blob/master/CHANGELOG.md
|
|
124
125
|
rubygems_mfa_required: 'true'
|
|
125
126
|
allowed_push_host: https://rubygems.org
|
|
126
|
-
post_install_message:
|
|
127
127
|
rdoc_options: []
|
|
128
128
|
require_paths:
|
|
129
129
|
- lib
|
|
@@ -138,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
139
|
version: '0'
|
|
140
140
|
requirements: []
|
|
141
|
-
rubygems_version: 3.
|
|
142
|
-
signing_key:
|
|
141
|
+
rubygems_version: 3.6.7
|
|
143
142
|
specification_version: 4
|
|
144
143
|
summary: encrypt secret data, and forward decrypted file to remote.
|
|
145
144
|
test_files: []
|