diff --git a/.github/workflows/securesdlc-required-workflow-dev.yml b/.github/workflows/securesdlc-required-workflow-dev.yml index b6a68d7..c20e3f4 100644 --- a/.github/workflows/securesdlc-required-workflow-dev.yml +++ b/.github/workflows/securesdlc-required-workflow-dev.yml @@ -3,9 +3,16 @@ run-name: "[Nautilus SecureSDLC Required DEV] Ref:${{ github.ref_name }} Event:$ on: workflow_dispatch: {} - workflow_call: {} + workflow_call: + secrets: + SEMGREP_APP_URL: + required: false + SEMGREP_APP_TOKEN: + required: false + SDLC_SLACK_NOTIFICATIONS: + required: false pull_request: {} - # pull_request_target: {} # Gives workflows excessive permissions. Not wanted. + # pull_request_target is intentionally not used because it would grant workflows excessive permissions. merge_group: {} jobs: @@ -14,8 +21,8 @@ jobs: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@main + uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@d0c22c2ca17f94fd70054496c71a63f5eeba75e7 secrets: SEMGREP_APP_URL: ${{ secrets.SEMGREP_APP_URL }} SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - SDLC_SLACK_NOTIFICATIONS: ${{ secrets.SDLC_SLACK_NOTIFICATIONS }} + SDLC_SLACK_NOTIFICATIONS: ${{ secrets.SDLC_SLACK_NOTIFICATIONS }} diff --git a/.github/workflows/securesdlc-required-workflow.yml b/.github/workflows/securesdlc-required-workflow.yml index 5451ab2..2d4a647 100644 --- a/.github/workflows/securesdlc-required-workflow.yml +++ b/.github/workflows/securesdlc-required-workflow.yml @@ -3,11 +3,17 @@ run-name: "[Nautilus SecureSDLC Required] Ref:${{ github.ref_name }} Event:${{ g on: workflow_dispatch: {} - workflow_call: {} + workflow_call: + secrets: + SEMGREP_APP_URL: + required: false + SEMGREP_APP_TOKEN: + required: false + SDLC_SLACK_NOTIFICATIONS: + required: false pull_request: {} - # pull_request_target: {} # Gives workflows excessive permissions. Not wanted. - # Needed by repos with a merge queue: the gate re-runs on the gh-readonly-queue - # ref, so a workflow that never fires there can never report and entries deadlock. + # pull_request_target is intentionally not used because it would grant workflows excessive permissions. + # The merge queue needs this event so its required status check can be reported. merge_group: {} jobs: @@ -15,9 +21,9 @@ jobs: permissions: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@release-stable + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@d61b052e36d795bf5ed9eeb116b4851cc0bbdcdd secrets: SEMGREP_APP_URL: ${{ secrets.SEMGREP_APP_URL }} SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - SDLC_SLACK_NOTIFICATIONS: ${{ secrets.SDLC_SLACK_NOTIFICATIONS }} + SDLC_SLACK_NOTIFICATIONS: ${{ secrets.SDLC_SLACK_NOTIFICATIONS }} diff --git a/.github/workflows/securesdlc.yml b/.github/workflows/securesdlc.yml index 8b82365..f3e93da 100644 --- a/.github/workflows/securesdlc.yml +++ b/.github/workflows/securesdlc.yml @@ -3,7 +3,14 @@ run-name: "[Nautilus SecureSDLC] Ref:${{ github.ref_name }} Event:${{ github.eve on: workflow_dispatch: {} - workflow_call: {} + workflow_call: + secrets: + SEMGREP_APP_URL: + required: false + SEMGREP_APP_TOKEN: + required: false + SDLC_SLACK_NOTIFICATIONS: + required: false push: branches: [ main ] @@ -12,8 +19,8 @@ jobs: permissions: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@release-stable + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@d61b052e36d795bf5ed9eeb116b4851cc0bbdcdd secrets: SEMGREP_APP_URL: ${{ secrets.SEMGREP_APP_URL }} SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} diff --git a/workflow-templates/securesdlc.yml b/workflow-templates/securesdlc.yml index 063da2c..b46a2e3 100644 --- a/workflow-templates/securesdlc.yml +++ b/workflow-templates/securesdlc.yml @@ -3,7 +3,14 @@ run-name: "[Nautilus SecureSDLC Reusable] Ref:${{ github.ref_name }} Event:${{ g on: workflow_dispatch: {} - workflow_call: {} + workflow_call: + secrets: + SEMGREP_APP_URL: + required: false + SEMGREP_APP_TOKEN: + required: false + SDLC_SLACK_NOTIFICATIONS: + required: false push: branches: [ $default-branch ] @@ -12,8 +19,8 @@ jobs: permissions: contents: read # for actions/checkout to fetch code security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@release-stable + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + uses: nautilus-wraith/securesdlc-umbrella/.github/workflows/securesdlc-umbrella.yml@d61b052e36d795bf5ed9eeb116b4851cc0bbdcdd secrets: SEMGREP_APP_URL: ${{ secrets.SEMGREP_APP_URL }} SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}