Skip to content

Commit

Permalink
ci: adjust workflow defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
xopham committed Feb 4, 2024
1 parent 8189484 commit 91fa628
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name: pr
on:
pull_request:
branches:
- main
- dev

defaults:
Expand All @@ -22,8 +21,8 @@ jobs:
skip_build: 'none'
skip_compliance_checks: 'none'
skip_unit_tests: 'all'
skip_sast: 'none'
skip_sca: 'none'
skip_sast: 'non-required'
skip_sca: 'non-required'
skip_docs: 'non-required'
skip_integration_tests: 'non-required'
output_type: 'sarif'
28 changes: 28 additions & 0 deletions .github/workflows/pr2main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pr

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 0: no topLevel permission defined
Remediation tip: Visit https://app.stepsecurity.io/secureworkflow.
Tick the 'Restrict permissions for GITHUB_TOKEN'
Untick other options
NOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead.
Click Remediation section below for further remediation help

#permissions: {} #TODO: reactivate for non-private

on:
pull_request:
branches:
- main

defaults:
run:
shell: bash

jobs:
ci:
uses: ./.github/workflows/.reusable-ci.yml
# permissions: #TODO: adjust for non-private
secrets: inherit
with:
#TODO: adjust for non private
skip_build: 'none'
skip_compliance_checks: 'none'
skip_unit_tests: 'all'
skip_sast: 'none'
skip_sca: 'none'
skip_docs: 'non-required'
skip_integration_tests: 'none'
output_type: 'sarif'
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
skip_build: 'none'
skip_compliance_checks: 'none'
skip_unit_tests: 'all'
skip_sast: 'non-required'
skip_sca: 'non-required'
skip_sast: 'none'
skip_sca: 'none'
skip_docs: 'none'
skip_integration_tests: 'none'
output_type: 'sarif'

0 comments on commit 91fa628

Please sign in to comment.