beaker-pe 2.11.24 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -2
- data/.github/workflows/release.yml +95 -0
- data/.github/workflows/security.yml +39 -0
- data/.github/workflows/testing.yml +23 -0
- data/.github_changelog_generator +4 -0
- data/.gitignore +0 -1
- data/CHANGELOG.md +2673 -0
- data/CODEOWNERS +2 -2
- data/Gemfile.lock +215 -0
- data/README.md +24 -16
- data/beaker-pe.gemspec +6 -6
- data/lib/beaker-pe/install/pe_utils.rb +13 -6
- data/lib/beaker-pe/version.rb +1 -1
- data/release-prep +12 -0
- data/spec/beaker-pe/install/pe_utils_spec.rb +43 -34
- metadata +38 -20
- data/.github/workflows/snyk_merge.yaml +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94445eab6378f475f96f6c1bdf9debbb0b126992fd1fdcab96bd55a474e50240
|
4
|
+
data.tar.gz: 6a919c4fd1aba1d8a893c0ab51911692aaac7ebc56d6d55b93be03bf9436a2ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3144fd66f0fa270458cc444b8aa4b8dfd1d77d1c7f031534f7743df3956dea9fdc43004dc3fb241330c1ff6cb4064c9e2fe0eb52a91588354ba1f014dd198172
|
7
|
+
data.tar.gz: 93c79d00efca228c7f34bec7fc01048de0015fd57edf0cc1c0f53da077d8645c801d249fc03262c61edf5d03ba5783e73a9628022940bfaa4e7808a83595f0a4
|
data/.github/dependabot.yml
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
version: 2
|
2
2
|
updates:
|
3
|
+
- package-ecosystem: "github-actions"
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: "weekly"
|
7
|
+
open-pull-requests-limit: 10
|
8
|
+
|
3
9
|
- package-ecosystem: bundler
|
4
10
|
directory: "/"
|
5
11
|
schedule:
|
6
|
-
interval:
|
7
|
-
time: "13:00"
|
12
|
+
interval: "weekly"
|
8
13
|
open-pull-requests-limit: 10
|
@@ -0,0 +1,95 @@
|
|
1
|
+
name: Tag Release & Push Gem
|
2
|
+
|
3
|
+
on: workflow_dispatch
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
release:
|
7
|
+
name: Validate Docs, Tag, and Push Gem
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
if: github.repository == 'puppetlabs/beaker-pe'
|
10
|
+
|
11
|
+
steps:
|
12
|
+
- name: Checkout code
|
13
|
+
uses: actions/checkout@v3
|
14
|
+
with:
|
15
|
+
ref: ${{ github.ref }}
|
16
|
+
clean: true
|
17
|
+
fetch-depth: 0
|
18
|
+
|
19
|
+
- name: Get New Version
|
20
|
+
id: nv
|
21
|
+
run: |
|
22
|
+
version=$(grep STRING lib/beaker-pe/version.rb |rev |cut -d "'" -f2 |rev)
|
23
|
+
echo "version=$version" >> $GITHUB_OUTPUT
|
24
|
+
echo "Found version $version from lib/beaker-pe/version.rb"
|
25
|
+
|
26
|
+
- name: Get Current Version
|
27
|
+
uses: actions/github-script@v6
|
28
|
+
id: cv
|
29
|
+
with:
|
30
|
+
script: |
|
31
|
+
const { data: response } = await github.rest.repos.getLatestRelease({
|
32
|
+
owner: context.repo.owner,
|
33
|
+
repo: context.repo.repo,
|
34
|
+
})
|
35
|
+
console.log(`The latest release is ${response.tag_name}`)
|
36
|
+
return response.tag_name
|
37
|
+
result-encoding: string
|
38
|
+
|
39
|
+
- name: Generate Changelog
|
40
|
+
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
41
|
+
with:
|
42
|
+
args: >-
|
43
|
+
--future-release ${{ steps.nv.outputs.version }}
|
44
|
+
env:
|
45
|
+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
46
|
+
|
47
|
+
- name: Validate Changelog
|
48
|
+
run : |
|
49
|
+
set -e
|
50
|
+
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
51
|
+
echo "Here is the current git status:"
|
52
|
+
git status
|
53
|
+
echo
|
54
|
+
echo "The following changes were detected:"
|
55
|
+
git --no-pager diff
|
56
|
+
echo "Uncommitted PRs found in the changelog. Please submit a release prep PR of changes after running './release-prep'"
|
57
|
+
exit 1
|
58
|
+
fi
|
59
|
+
|
60
|
+
- name: Generate Release Notes
|
61
|
+
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
|
62
|
+
with:
|
63
|
+
args: >-
|
64
|
+
--since-tag ${{ steps.cv.outputs.result }}
|
65
|
+
--future-release ${{ steps.nv.outputs.version }}
|
66
|
+
--output release-notes.md
|
67
|
+
env:
|
68
|
+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
69
|
+
|
70
|
+
- name: Tag Release
|
71
|
+
uses: ncipollo/release-action@v1
|
72
|
+
with:
|
73
|
+
tag: ${{ steps.nv.outputs.version }}
|
74
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
75
|
+
bodyfile: release-notes.md
|
76
|
+
draft: false
|
77
|
+
prerelease: false
|
78
|
+
|
79
|
+
- name: Set up Ruby 2.7
|
80
|
+
uses: actions/setup-ruby@v1
|
81
|
+
with:
|
82
|
+
version: 2.7.x
|
83
|
+
|
84
|
+
- name: Build gem
|
85
|
+
run: gem build *.gemspec
|
86
|
+
|
87
|
+
- name: Publish gem
|
88
|
+
run: |
|
89
|
+
mkdir -p $HOME/.gem
|
90
|
+
touch $HOME/.gem/credentials
|
91
|
+
chmod 0600 $HOME/.gem/credentials
|
92
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
93
|
+
gem push *.gem
|
94
|
+
env:
|
95
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
name: Security
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
scan:
|
10
|
+
name: Mend Scanning
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: checkout repo content
|
14
|
+
uses: actions/checkout@v3
|
15
|
+
with:
|
16
|
+
fetch-depth: 1
|
17
|
+
- name: setup ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: 2.7
|
21
|
+
# setup a package lock if one doesn't exist, otherwise do nothing
|
22
|
+
- name: check lock
|
23
|
+
run: '[ -f "Gemfile.lock" ] && echo "package lock file exists, skipping" || bundle lock'
|
24
|
+
# install java
|
25
|
+
- uses: actions/setup-java@v3
|
26
|
+
with:
|
27
|
+
distribution: 'temurin' # See 'Supported distributions' for available options
|
28
|
+
java-version: '17'
|
29
|
+
# download mend
|
30
|
+
- name: download_mend
|
31
|
+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
|
32
|
+
- name: run mend
|
33
|
+
run: java -jar wss-unified-agent.jar
|
34
|
+
env:
|
35
|
+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
|
36
|
+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
|
37
|
+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
|
38
|
+
WS_PRODUCTNAME: RE
|
39
|
+
WS_PROJECTNAME: ${{ github.event.repository.name }}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Testing
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
spec_tests:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby-version:
|
14
|
+
- '2.7'
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby-version }}
|
21
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
22
|
+
- name: Run spec tests
|
23
|
+
run: bundle exec rake test:spec
|