Skip to content
Closed
Changes from 1 commit
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
8 changes: 4 additions & 4 deletions organizations/.github/workflows/ghas-policy-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
- name: Get the list of repos with GHAS enabled
id: repo_list
run: |
repos=$(echo $(./github-foundations-cli list repos --ghas ${{ github.workspace }}/projects))
repos=$(echo $(./github-foundations-cli list repos --ghas ${{ github.workspace }}/projects 2>&1))
Comment thread
bzarboni1 marked this conversation as resolved.
echo -e "Found repos: $repos"
# Default to [] if repos is empty
if [ -z "$repos" ]; then
# Default to [] if repos is empty or contains error text
if [ -z "$repos" ] || echo "$repos" | grep -qiE "(not found|panic|error|exception|fatal|fail)"; then
repos="[]"
else
repos=$(echo -e "${repos}" | sed s/\'/\"/g)
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}

- name: For each repo, run the policy checks
uses: advanced-security/policy-as-code@v2.9.0
uses: advanced-security/policy-as-code@v2.7.2
Comment thread
bzarboni1 marked this conversation as resolved.
Outdated
# env:
# DEBUG: true
with:
Expand Down