Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added detect-secrets to workflow #69

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
18 changes: 17 additions & 1 deletion .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,24 @@ on:

jobs:

detect-secrets:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Turn script into an executable
working-directory: ./tools
run: chmod +x detect-secrets.sh

- name: Run the detect secrets script
working-directory: ./tools
run: ./detect-secrets.sh

# Get modules that were changed as part of this Pull Request,
# set that as an output of this job to be passed to the next job.

get-changed-modules:
name: Get the modules changed in this Pull Request
runs-on: ubuntu-latest
Expand Down Expand Up @@ -168,7 +184,7 @@ jobs:
# This job is set in the branch protection rules as required to merge a Pull Request.
end-pull-request-build:
name: Pull Request build was successful
needs: [pr-build-obr]
needs: [pr-build-obr, detect-secrets]
runs-on: ubuntu-latest

steps:
Expand Down