Skip to content

Commit

Permalink
Updating Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kadraman committed Oct 17, 2024
1 parent fbedc6a commit c5b18c5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/fod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,21 @@ jobs:
default_fortify_app_name: ${{ env.DEFAULT_APP_NAME }}
default_fortify_release_name: ${{ github.ref_name }}
app_name_postfix: ${{ vars.FORTIFY_APP_NAME_POSTFIX }}
get_fod_release_id: true
fod_api_url: ${{ vars.FOD_API_URL }}
fod_client_id: ${{ secrets.FOD_CLIENT_ID }}
fod_client_secret: ${{ secrets.FOD_CLIENT_SECRET }}
# Uncomment below to debug FoD App/Release names
#- name: Print App and Release Name
# shell: bash
# run: |
# echo "FoD App Name: ${FOD_APP_NAME}"
# echo "FoD Release Name: ${FOD_RELEASE_NAME}"
# env:
# FOD_APP_NAME: ${{ steps.fortify-app-and-rel-name.outputs.app_name }}
# FOD_RELEASE_NAME: ${{ steps.fortify-app-and-rel-name.outputs.release_name }}
- name: Print App and Release Name
shell: bash
run: |
echo "FoD App Name: ${FOD_APP_NAME}"
echo "FoD Release Name: ${FOD_RELEASE_NAME}"
echo "FoD Release Id: ${FOD_RELEASE_ID}"
env:
FOD_APP_NAME: ${{ steps.fortify-app-and-rel-name.outputs.app_name }}
FOD_RELEASE_NAME: ${{ steps.fortify-app-and-rel-name.outputs.release_name }}
FOD_RELEASE_ID: ${{ steps.fortify-app-and-rel-name.outputs.release_id }}

#
# See: https://github.com/marketplace/actions/fortify-ast-scan
Expand All @@ -141,10 +147,11 @@ jobs:
FOD_CLIENT_ID: ${{ secrets.FOD_CLIENT_ID }}
FOD_CLIENT_SECRET: ${{ secrets.FOD_CLIENT_SECRET }}
# FOD_LOGIN_EXTRA_OPTS: --socket-timeout=60s
FOD_RELEASE: ${{ format('{0}:{1}', steps.fortify-app-and-rel-name.outputs.app_name, steps.fortify-app-and-rel-name.outputs.release_name) }}
PACKAGE_EXTRA_OPTS: -oss
#FOD_RELEASE: ${{ format('{0}:{1}', steps.fortify-app-and-rel-name.outputs.app_name, steps.fortify-app-and-rel-name.outputs.release_name) }}
FOD_RELEASE: ${{ steps.fortify-app-and-rel-name.outputs.release_id }}
#PACKAGE_EXTRA_OPTS: -oss
DO_SETUP: true
SETUP_EXTRA_OPTS: ${{ format('--sdlc-status Development --copy-from "{0}:{1}"', steps.fortify-app-and-rel-name.outputs.app_name, steps.fortify-app-and-rel-name.outputs.parent_release_name) }}
SETUP_EXTRA_OPTS: ${{ format('--sdlc-status Development --copy-from {0}', vars.FOD_PARENT_RELEASE_ID) }}
DO_WAIT: true
DO_JOB_SUMMARY: true
#DO_POLICY_CHECK: true
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ build
.history
dependencies.txt
bin/main
bin/test
bin/test
gradle.debricked.lock
sc.gradle.debricked.lock

0 comments on commit c5b18c5

Please sign in to comment.