Skip to content

Commit 9b60c70

Browse files
Bump senzing-factory/build-resources from 1 to 2 (#23)
* Bump senzing-factory/build-resources from 1 to 2 Bumps [senzing-factory/build-resources](https://github.com/senzing-factory/build-resources) from 1 to 2. - [Release notes](https://github.com/senzing-factory/build-resources/releases) - [Changelog](https://github.com/senzing-factory/build-resources/blob/main/CHANGELOG.md) - [Commits](senzing-factory/build-resources@v1...v2) --- updated-dependencies: - dependency-name: senzing-factory/build-resources dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * add checkov config, healthcheck, and update workflow permissions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam <[email protected]>
1 parent 7693b28 commit 9b60c70

9 files changed

+38
-18
lines changed

Diff for: .github/linters/.checkov.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
quiet: true
2+
skip-check: CKV_DOCKER_7

Diff for: .github/linters/.jscpd.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"threshold": 32
3+
}

Diff for: .github/workflows/add-labels-standardized.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66
- opened
77
- reopened
88

9+
permissions:
10+
issues: write
11+
912
jobs:
1013
add-issue-labels:
11-
permissions:
12-
issues: write
1314
secrets:
1415
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
1516
SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }}
16-
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v1
17+
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v2

Diff for: .github/workflows/add-to-project-community-dependabot.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
CREATOR: ${{ github.event.pull_request.user.login }}
99
GITHUB_TOKEN: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }}
1010

11+
permissions:
12+
repository-projects: write
13+
1114
jobs:
1215
add-to-project-dependabot:
1316
name: add issue to Senzing Community project

Diff for: .github/workflows/add-to-project-community.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- opened
77
- reopened
88

9+
permissions:
10+
repository-projects: write
11+
912
jobs:
1013
add-to-project:
1114
name: add issue to project

Diff for: .github/workflows/lint-workflows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ permissions:
1414

1515
jobs:
1616
lint-workflows:
17-
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v1
17+
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v2

Diff for: .github/workflows/move-pr-to-done-dependabot.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ on:
55
branches: [main]
66
types: [closed]
77

8+
permissions:
9+
repository-projects: write
10+
811
jobs:
912
move-pr-to-done-dependabot:
1013
secrets:
1114
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
12-
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@v1
15+
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done.yaml@v2

Diff for: .github/workflows/pylint.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: pylint
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
pylint:
710
runs-on: ubuntu-latest

Diff for: Dockerfile

+15-13
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ FROM ${BASE_IMAGE}
44
ENV REFRESHED_AT=2022-12-21
55

66
LABEL Name="senzing/code-snippets" \
7-
Maintainer="[email protected]" \
8-
Version="0.0.1"
7+
Maintainer="[email protected]" \
8+
Version="0.0.1"
99

1010
# Run as "root" for system installation.
1111

@@ -14,24 +14,26 @@ USER root
1414
# Install packages via apt.
1515

1616
RUN apt-get update \
17-
&& apt-get -y install \
18-
vim \
19-
nano \
20-
curl \
21-
less \
22-
python3 \
23-
ipython3 \
24-
python3-pip \
25-
python3-virtualenv \
26-
python3-venv \
27-
&& rm -rf /var/lib/apt/lists/*
17+
&& apt-get -y install \
18+
vim \
19+
nano \
20+
curl \
21+
less \
22+
python3 \
23+
ipython3 \
24+
python3-pip \
25+
python3-virtualenv \
26+
python3-venv \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
## Copy files from repository.
3030

3131
COPY ./Python/ /code-snippets/Python
3232
COPY ./Resources/ /code-snippets/Resources
3333
COPY ./rootfs /
3434

35+
HEALTHCHECK CMD ["/app/healthcheck.sh"]
36+
3537
# Make non-root container.
3638

3739
USER 1001

0 commit comments

Comments
 (0)