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-senzing-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_GITHUB_ORGANIZATION_PROJECT }}

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-senzing.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_GITHUB_ORGANIZATION_PROJECT }}
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 }}
11 changes: 7 additions & 4 deletions .github/workflows/bandit.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
pull-requests: write
permissions: {}

jobs:
bandit:
permissions:
contents: read
pull-requests: write
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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -32,5 +35,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: "examples src"
path: "python"
recursive: "true"
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
10 changes: 6 additions & 4 deletions .github/workflows/black.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
permissions: {}

jobs:
black:
name: black Python ${{ matrix.python-version }}
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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -33,8 +36,7 @@ jobs:
source ./venv/bin/activate
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
python -m pip install --upgrade pip
python -m pip install --requirement requirements.txt
python -m pip install black
python -m pip install --group all .

- name: Run black testing
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/csharp-darwin-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- cron: "15 7 * * *"
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
csharp-darwin-snippets:
Expand All @@ -28,7 +27,7 @@ jobs:
- name: checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-dotnet@v5
with:
Expand Down Expand Up @@ -64,6 +63,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.csharp-darwin-snippets.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.csharp-darwin-snippets.outputs.status }}
7 changes: 3 additions & 4 deletions .github/workflows/csharp-linux-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
schedule:
- cron: "15 7 * * *"

permissions:
contents: read
permissions: {}

jobs:
csharp-linux-snippets:
Expand All @@ -30,7 +29,7 @@ jobs:
- name: checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-dotnet@v5
with:
Expand Down Expand Up @@ -62,6 +61,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.csharp-linux-snippets.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.csharp-linux-snippets.outputs.status }}
7 changes: 3 additions & 4 deletions .github/workflows/csharp-windows-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- cron: "15 7 * * *"
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
csharp-windows-snippets:
Expand All @@ -28,7 +27,7 @@ jobs:
- name: checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-dotnet@v5
with:
Expand Down Expand Up @@ -63,6 +62,6 @@ jobs:
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.csharp-windows-snippets.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.csharp-windows-snippets.outputs.status }}
9 changes: 5 additions & 4 deletions .github/workflows/dependabot-approve-and-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
pull_request:
branches: [main]

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

jobs:
dependabot-approve-and-merge:
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
43 changes: 7 additions & 36 deletions .github/workflows/dependency-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,12 @@ on:
pull_request:
branches: [main]

permissions:
contents: read
permissions: {}

jobs:
fpvs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m venv ./venv
source ./venv/bin/activate
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
python -m pip install --upgrade pip
python -m pip install --requirement requirements.txt
python -m pip install wheel
python -m pip wheel -r requirements.txt --wheel-dir=vendor

- name: Run fpvs scan
run: |
python -m pip install fpvs
git clone https://gitlab.com/gitlab-org/security-products/gemnasium-db.git
fpvs-scan --verbose

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -61,8 +32,8 @@ jobs:
python -m venv ./venv
source ./venv/bin/activate
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
python -m pip install --requirement requirements.txt
python -m pip install .
python -m pip install --upgrade pip
python -m pip install --group all .

- name: Run pip-audit
uses: pypa/[email protected]
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/dotnet-format.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:
dotnet-format:
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -23,7 +24,7 @@ jobs:
- name: checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-dotnet@v5
with:
Expand All @@ -50,4 +51,5 @@ jobs:
cd "$(dirname "$project")"
dotnet restore
dotnet format --verify-no-changes --verbosity diagnostic
cd -
done
7 changes: 5 additions & 2 deletions .github/workflows/flake8.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
permissions: {}

jobs:
flake8:
name: flake8 Python ${{ matrix.python-version }}
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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down
Loading
Loading