Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

---
version: 2
updates:
- package-ecosystem: github-actions
- package-ecosystem: "github-actions"
assignees:
- kernelsam
- "kernelsam"
cooldown:
default-days: 21
directory: /
exclude:
- "senzing-factory/*"
directory: "/"
groups:
senzing-factory:
patterns:
- "senzing-factory/*"
schedule:
interval: daily
- package-ecosystem: gomod
interval: "daily"
- package-ecosystem: "gomod"
assignees:
- docktermj
- "docktermj"
cooldown:
default-days: 21
directory: /
directory: "/"
schedule:
interval: daily
interval: "daily"
11 changes: 6 additions & 5 deletions .github/workflows/add-labels-standardized.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ jobs:
issues: write
secrets:
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }}
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v3
MEMBERS: ${{ secrets.SENZING_MEMBERS }}
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v4

slack-notification:
needs: [add-issue-labels]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-issue-labels.outputs.job-status) }}
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-issue-labels.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.add-issue-labels.outputs.job-status }}
job-status: ${{ needs.add-issue-labels.result }}
11 changes: 6 additions & 5 deletions .github/workflows/add-to-project-garage-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ jobs:
permissions:
repository-projects: write
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v3
PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v4
with:
project: ${{ vars.SENZING_PROJECT_GARAGE }}

slack-notification:
needs: [add-to-project-dependabot]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project-dependabot.outputs.job-status) }}
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project-dependabot.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.add-to-project-dependabot.outputs.job-status }}
job-status: ${{ needs.add-to-project-dependabot.result }}
11 changes: 6 additions & 5 deletions .github/workflows/add-to-project-garage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ jobs:
permissions:
repository-projects: write
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v3
PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v4
with:
project-number: ${{ vars.SENZING_PROJECT_GARAGE }}
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}

slack-notification:
needs: [add-to-project]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project.outputs.job-status) }}
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.add-to-project.outputs.job-status }}
job-status: ${{ needs.add-to-project.result }}
2 changes: 1 addition & 1 deletion .github/workflows/claude-pr-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions: {}

jobs:
review:
uses: senzing-factory/build-resources/.github/workflows/claude-pull-request-review.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/claude-pull-request-review.yaml@v4
permissions:
contents: read
pull-requests: write
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependabot-approve-and-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
contents: write
pull-requests: write
secrets:
SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v3
CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v4
with:
update-type: "minor"

Expand All @@ -26,7 +26,7 @@ jobs:
contents: write
pull-requests: write
secrets:
SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v3
CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v4
with:
update-type: "patch"
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
name: Verify Dockerfiles REFRESHED_AT Updated
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/verify-dockerfile-refreshed-at-updated.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/verify-dockerfile-refreshed-at-updated.yaml@v4
3 changes: 2 additions & 1 deletion .github/workflows/go-proxy-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-proxy-pull.outputs.status) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.go-proxy-pull.outputs.status }}
5 changes: 3 additions & 2 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
needs: go-test-darwin
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v4
with:
coverage-config: ./.github/coverage/testcoverage-darwin.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -106,6 +106,7 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-darwin.result ) && github.event_name == 'schedule' }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.go-test-darwin.result }}
5 changes: 3 additions & 2 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
needs: go-test-linux
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v4
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -105,6 +105,7 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-linux.result ) && (github.ref_name == github.event.repository.default_branch || github.event_name == 'schedule') }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.go-test-linux.result }}
5 changes: 3 additions & 2 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
needs: go-test-windows
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v4
with:
coverage-config: ./.github/coverage/testcoverage-windows.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -101,6 +101,7 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-windows.result ) && github.event_name == 'schedule' }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.go-test-windows.result }}
2 changes: 1 addition & 1 deletion .github/workflows/link-issues-to-pr-post-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
permissions:
pull-requests: write
contents: read
uses: senzing-factory/build-resources/.github/workflows/link-issues-to-pull-request-post-merge.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/link-issues-to-pull-request-post-merge.yaml@v4
4 changes: 2 additions & 2 deletions .github/workflows/lint-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
permissions:
contents: read
packages: read
pull-requests: read
pull-requests: write
statuses: write
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v4
15 changes: 8 additions & 7 deletions .github/workflows/make-go-github-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ jobs:
contents: write
pull-requests: write
secrets:
SENZING_GITHUB_ACTOR: ${{ secrets.SENZING_GITHUB_ACTOR }}
SENZING_GITHUB_GPG_PASSPHRASE: ${{ secrets.SENZING_GITHUB_GPG_PASSPHRASE }}
SENZING_GITHUB_GPG_PRIVATE_KEY: ${{ secrets.SENZING_GITHUB_GPG_PRIVATE_KEY }}
uses: senzing-factory/build-resources/.github/workflows/make-go-github-file.yaml@v3
GIT_ACTOR: ${{ secrets.SENZING_GITHUB_ACTOR }}
GPG_PASSPHRASE: ${{ secrets.SENZING_GITHUB_GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.SENZING_GITHUB_GPG_PRIVATE_KEY }}
uses: senzing-factory/build-resources/.github/workflows/make-go-github-file.yaml@v4

slack-notification:
needs: [make-go-github-file]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.make-go-github-file.outputs.job-status) }}
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.make-go-github-file.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.make-go-github-file.outputs.job-status }}
job-status: ${{ needs.make-go-github-file.result }}
3 changes: 2 additions & 1 deletion .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.make-go-tag.outputs.status ) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.make-go-tag.outputs.status }}
4 changes: 2 additions & 2 deletions .github/workflows/move-pr-to-done-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
repository-projects: write
secrets:
SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done-dependabot.yaml@v3
PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/move-pr-to-done-dependabot.yaml@v4
with:
project: ${{ vars.SENZING_PROJECT_GARAGE }}
2 changes: 1 addition & 1 deletion .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
spellcheck:
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/cspell.yaml@v3
uses: senzing-factory/build-resources/.github/workflows/cspell.yaml@v4
2 changes: 2 additions & 0 deletions cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ var DocsCmd = &cobra.Command{
Short: "Generate documentation for the command",
RunE: func(cmd *cobra.Command, args []string) error {
_ = args

dir, err := cmd.Flags().GetString("dir")
if err != nil {
return wraperror.Errorf(err, "getting 'dir' value")
}

if dir == "" {
if dir, err = os.MkdirTemp("", "load"); err != nil {
return wraperror.Errorf(err, "constructing cobra.Command")
Expand Down
Loading