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
5 changes: 5 additions & 0 deletions .github/linters/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rules:
unpinned-uses:
config:
policies:
"*": ref-pin
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 }}
5 changes: 3 additions & 2 deletions .github/workflows/bearer.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:
rule_check:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
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"
5 changes: 3 additions & 2 deletions .github/workflows/docker-build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
- main
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
docker-build-container:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
Expand Down
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 }}
9 changes: 6 additions & 3 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ 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 }}"
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -83,7 +84,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"
11 changes: 7 additions & 4 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,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 Down Expand Up @@ -82,7 +83,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 @@ -92,6 +95,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.go-test-linux.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
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 }}
9 changes: 6 additions & 3 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ 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 }}"
permissions:
contents: read
runs-on: windows-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -78,7 +79,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"
11 changes: 6 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 Down
5 changes: 3 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 Down
13 changes: 7 additions & 6 deletions .github/workflows/lint-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
packages: read
pull-requests: read
statuses: write
permissions: {}

jobs:
lint-workflows:
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v2
permissions:
contents: read
packages: read
pull-requests: read
statuses: write
uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v3
11 changes: 6 additions & 5 deletions .github/workflows/make-go-github-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ on:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

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

jobs:
make-go-github-file:
permissions:
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@v2
uses: senzing-factory/build-resources/.github/workflows/make-go-github-file.yaml@v3

slack-notification:
needs: [make-go-github-file]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.make-go-github-file.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.make-go-github-file.outputs.job-status }}
7 changes: 4 additions & 3 deletions .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write
permissions: {}

jobs:
make-go-tag:
name: Make a vM.m.P tag
outputs:
status: ${{ job.status }}
permissions:
contents: write
runs-on: ubuntu-latest

steps:
Expand All @@ -34,6 +35,6 @@ 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@v2
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v3
with:
job-status: ${{ needs.make-go-tag.outputs.status }}
7 changes: 4 additions & 3 deletions .github/workflows/move-pr-to-done-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:
branches: [main]
types: [closed]

permissions:
repository-projects: write
permissions: {}

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