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
9 changes: 9 additions & 0 deletions .github/linters/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules:
unpinned-uses:
config:
policies:
"*": ref-pin
unpinned-images:
config:
policies:
"*": ref-pin
9 changes: 9 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabledManagers": ["dockerfile", "docker-compose"],
"extends": [
"config:recommended",
":disableDependencyDashboard",
"docker:pinDigests"
]
}
9 changes: 5 additions & 4 deletions .github/workflows/add-labels-standardized.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ on:
- opened
- reopened

permissions:
issues: write
permissions: {}

jobs:
add-issue-labels:
permissions:
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@v2
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v3

slack-notification:
needs: [add-issue-labels]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-issue-labels.outputs.job-status) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.add-issue-labels.outputs.job-status }}
9 changes: 5 additions & 4 deletions .github/workflows/add-to-project-garage-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
pull_request:
branches: [main]

permissions:
repository-projects: write
permissions: {}

jobs:
add-to-project-dependabot:
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@v2
uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v3
with:
project: ${{ vars.SENZING_PROJECT_GARAGE }}

Expand All @@ -20,6 +21,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project-dependabot.outputs.job-status) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.add-to-project-dependabot.outputs.job-status }}
10 changes: 5 additions & 5 deletions .github/workflows/add-to-project-garage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ on:
- opened
- reopened

permissions:
repository-projects: write
permissions: {}

jobs:
add-to-project:
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@v2
uses: senzing-factory/build-resources/.github/workflows/add-to-project.yaml@v3
with:
classic: false
project-number: ${{ vars.SENZING_PROJECT_GARAGE }}
org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}

Expand All @@ -24,6 +24,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project.outputs.job-status) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.add-to-project.outputs.job-status }}
7 changes: 5 additions & 2 deletions .github/workflows/bearer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
permissions: {}

jobs:
rule_check:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
with:
persist-credentials: false

- name: Bearer
uses: bearer/bearer-action@v2
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/dependabot-approve-and-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ on:
pull_request:
branches: [main]

permissions:
contents: write
pull-requests: write
permissions: {}

jobs:
dependabot-approve-and-merge-minor:
permissions:
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@v2
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v3
with:
update-type: "minor"

dependabot-approve-and-merge-patch:
permissions:
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@v2
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v3
with:
update-type: "patch"
7 changes: 4 additions & 3 deletions .github/workflows/go-proxy-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write
permissions: {}

jobs:
go-proxy-pull:
outputs:
status: ${{ job.status }}
permissions:
contents: write
runs-on: ubuntu-latest

steps:
Expand All @@ -25,6 +26,6 @@ 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@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.go-proxy-pull.outputs.status }}
13 changes: 9 additions & 4 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ env:
SENZING_LOG_LEVEL: TRACE
SENZING_TOOLS_DATABASE_URL: sqlite3://na:na@nowhere/tmp/sqlite/G2C.db

permissions:
contents: read
permissions: {}

jobs:
go-test-darwin:
name: "Go test with Senzing: ${{ matrix.senzingsdk-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -30,6 +31,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v6
Expand Down Expand Up @@ -88,7 +91,9 @@ jobs:
coverage:
name: Coverage
needs: go-test-darwin
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -98,6 +103,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-darwin.outputs.status ) && github.event_name == 'schedule' }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.go-test-darwin.outputs.status }}
15 changes: 10 additions & 5 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ env:
SENZING_LOG_LEVEL: TRACE
SENZING_TOOLS_DATABASE_URL: sqlite3://na:na@nowhere/tmp/sqlite/G2C.db

permissions:
contents: read
permissions: {}

jobs:
go-test-linux:
name: "Go test with Senzing: ${{ matrix.senzingsdk-version }}; OS: ${{ matrix.os }}; Go: ${{ matrix.go }}"
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -34,13 +35,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
env:
SENZING_TOOLS_ENABLE_ALL: true
image: senzing/serve-grpc
image: senzing/serve-grpc:0.9.21
ports:
- 8261:8261

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v6
Expand Down Expand Up @@ -96,7 +99,9 @@ jobs:
coverage:
name: Coverage
needs: go-test-linux
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -106,6 +111,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-linux.outputs.status ) && (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@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.go-test-linux.outputs.status && needs.coverage.outputs.job-status }}
13 changes: 9 additions & 4 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ env:
SENZING_LOG_LEVEL: TRACE
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@nowhere/C:\\Temp\\sqlite\\G2C.db"

permissions:
contents: read
permissions: {}

jobs:
go-test-windows:
name: "Go test with Senzing: ${{ matrix.senzingsdk-version }}; OS: windows-latest; Go: ${{ matrix.go }}"
outputs:
status: ${{ job.status }}
permissions:
contents: read
runs-on: windows-latest
strategy:
fail-fast: false
Expand All @@ -29,6 +30,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go ${{ matrix.go }}
uses: actions/setup-go@v6
Expand Down Expand Up @@ -83,7 +86,9 @@ jobs:
coverage:
name: Coverage
needs: go-test-windows
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
permissions:
contents: read
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v3
with:
coverage-config: ./.github/coverage/testcoverage.yaml
profile: "cover-production-v4.out,cover-staging-v4.out"
Expand All @@ -93,6 +98,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-windows.outputs.status ) && github.event_name == 'schedule' }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.go-test-windows.outputs.status }}
13 changes: 8 additions & 5 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ on:
pull_request:
branches: [main]

permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
permissions: {}

jobs:
golangci:
name: lint
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -25,6 +26,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Install Senzing SDK
uses: senzing-factory/github-action-install-senzing-sdk@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
permissions: {}

jobs:
govulncheck:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -21,6 +22,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false

- name: Setup go
uses: actions/setup-go@v6
Expand Down
Loading
Loading