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
3 changes: 3 additions & 0 deletions .github/linters/zizmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ rules:
config:
policies:
"*": ref-pin
secrets-outside-env:
ignore:
- pylint.yaml
10 changes: 1 addition & 9 deletions .github/workflows/add-labels-standardized.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ jobs:
secrets:
ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
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.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
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.result }}
uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v4
12 changes: 2 additions & 10 deletions .github/workflows/add-to-project-senzing-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ jobs:
repository-projects: write
secrets:
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_GITHUB_ORGANIZATION_PROJECT }}

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

slack-notification:
needs: [add-to-project]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project.result) }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
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.result }}
16 changes: 7 additions & 9 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ jobs:
# shellcheck disable=SC2046
pylint $(git ls-files '*.py' ':!:docs/source/*')

slack-notification:
needs: [pylint]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pylint.result ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v4
with:
job-status: ${{ needs.pylint.result }}
- name: Notify Slack on failure
if: (failure() || cancelled()) && github.ref_name == github.event.repository.default_branch
uses: senzing-factory/build-resources/slack-failure-notification@v4
with:
job-status: ${{ job.status }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
Loading