-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into PRWLR-5695-review-sdk-container-actions-fo…
…r-v-4
- Loading branch information
Showing
23 changed files
with
113 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: "Custom CodeQL Config for API" | ||
name: "API - CodeQL Config" | ||
paths: | ||
- 'api/' | ||
- "api/" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name: "SDK - CodeQL Config" | ||
paths-ignore: | ||
- "api/" | ||
- "ui/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: "Custom CodeQL Config for UI" | ||
name: "UI - CodeQL Config" | ||
paths: | ||
- "ui/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "API - Pull Request" | ||
name: API - Pull Request | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
name: Automatic Backport | ||
name: Prowler - Automatic Backport | ||
|
||
on: | ||
pull_request_target: | ||
branches: ['master'] | ||
types: ['labeled', 'closed'] | ||
|
||
env: | ||
BACKPORT_LABEL_PREFIX: backport-to-v | ||
BACKPORT_LABEL_IGNORE: was-backported | ||
|
||
jobs: | ||
backport: | ||
name: Backport PR | ||
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) | ||
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport')) && !(contains(github.event.pull_request.labels.*.name, 'was-backported')) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
# Workaround not to fail the workflow if the PR does not need a backport | ||
# https://github.com/sorenlouv/backport-github-action/issues/127#issuecomment-2258561266 | ||
- name: Check for backport labels | ||
id: check_labels | ||
run: |- | ||
labels='${{ toJSON(github.event.pull_request.labels.*.name) }}' | ||
echo "$labels" | ||
matched=$(echo "${labels}" | jq '. | map(select(startswith("backport-to-"))) | length') | ||
echo "matched=$matched" | ||
echo "matched=$matched" >> $GITHUB_OUTPUT | ||
- name: Check labels | ||
id: preview_label_check | ||
uses: docker://agilepathway/pull-request-label-checker:v1.6.55 | ||
with: | ||
allow_failure: true | ||
prefix_mode: true | ||
one_of: ${{ env.BACKPORT_LABEL_PREFIX}} | ||
none_of: ${{ env.BACKPORT_LABEL_IGNORE}} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Backport Action | ||
if: fromJSON(steps.check_labels.outputs.matched) > 0 | ||
if: steps.preview_label_check.outputs.label_check == 'success' | ||
uses: sorenlouv/backport-github-action@v9.5.1 | ||
with: | ||
github_token: ${{ secrets.PROWLER_BOT_ACCESS_TOKEN }} | ||
auto_backport_label_prefix: backport-to- | ||
auto_backport_label_prefix: ${{ env.BACKPORT_LABEL_PREFIX}} | ||
|
||
- name: Info log | ||
if: ${{ success() && fromJSON(steps.check_labels.outputs.matched) > 0 }} | ||
if: ${{ success() && steps.preview_label_check.outputs.label_check == 'success' }} | ||
run: cat ~/.backport/backport.info.log | ||
|
||
- name: Debug log | ||
if: ${{ failure() && fromJSON(steps.check_labels.outputs.matched) > 0 }} | ||
if: ${{ failure() && steps.preview_label_check.outputs.label_check == 'success' }} | ||
run: cat ~/.backport/backport.debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Pull Request Documentation Link | ||
name: Prowler - Pull Request Documentation Link | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Pull Request Labeler" | ||
name: Prowler - PR Labeler | ||
|
||
on: | ||
pull_request_target: | ||
|
2 changes: 1 addition & 1 deletion
2
.../workflows/build-lint-push-containers.yml → ...kflows/sdk-build-lint-push-containers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build and Push containers | ||
name: SDK - Build and Push containers | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/pull-request.yml → .github/workflows/sdk-pull-request.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Pull Request" | ||
name: SDK - Pull Request | ||
|
||
on: | ||
push: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/pypi-release.yml → .github/workflows/sdk-pypi-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: PyPI release | ||
name: SDK - PyPI release | ||
|
||
on: | ||
release: | ||
|
2 changes: 1 addition & 1 deletion
2
...orkflows/refresh_aws_services_regions.yml → ...lows/sdk-refresh-aws-services-regions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.