Skip to content

Commit

Permalink
Merge pull request #7 from port-labs/added_target_kind_to_workflows
Browse files Browse the repository at this point in the history
Update generate-scorecard-reminder.yaml
  • Loading branch information
matarpeles authored Dec 4, 2023
2 parents 1cffea2 + 7e9e70f commit 58b3d90
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generate-scorecard-reminder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecards Reminders
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: scorecard_reminder
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
Expand All @@ -18,3 +18,4 @@ jobs:
blueprint: app
scorecard: productionReadiness
filter_rule: '{"property": "$team","operator": "containsAny","value": ["Backend Team"]}'
target_kind: slack
3 changes: 2 additions & 1 deletion .github/workflows/generate-scorecard-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecard Report
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: scorecard_report
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
port_client_secret: ${{ secrets.PORT_CLIENT_SECRET }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
blueprint: app
scorecard: productionReadiness
target_kind: slack
2 changes: 1 addition & 1 deletion .github/workflows/sync-jira-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Sync Jira Issues
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: ticket_handler
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecard Report
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
message_kind: scorecard_report
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
port_client_secret: ${{ secrets.PORT_CLIENT_SECRET }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
blueprint: app
scorecard: productionReadiness
target_kind: slack
```
## Send Scorecard Reminder
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecards Reminders
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
message_kind: scorecard_reminder
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
Expand All @@ -125,6 +126,7 @@ jobs:
blueprint: app
scorecard: productionReadiness
filter_rule: '{"property": "$team","operator": "containsAny","value": ["Backend Team"]}'
target_kind: slack
```


Expand Down Expand Up @@ -184,7 +186,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Sync Jira Issues
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: ticket_handler
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
Expand Down
3 changes: 2 additions & 1 deletion docs/examples/generate-scorecard-reminder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecards Reminders
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: scorecard_reminder
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
Expand All @@ -20,3 +20,4 @@ jobs:
blueprint: app
scorecard: productionReadiness
filter_rule: '{"property": "$team","operator": "containsAny","value": ["Backend Team"]}'
target_kind: slack
3 changes: 2 additions & 1 deletion docs/examples/generate-scorecard-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Scorecard Report
uses: port-labs/[email protected].2
uses: port-labs/[email protected].3
with:
operation_kind: scorecard_report
port_client_id: ${{ secrets.PORT_CLIENT_ID }}
port_client_secret: ${{ secrets.PORT_CLIENT_SECRET }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
blueprint: app
scorecard: productionReadiness
target_kind: slack

0 comments on commit 58b3d90

Please sign in to comment.