Skip to content

Commit

Permalink
ci: use local paths to composite actions
Browse files Browse the repository at this point in the history
  • Loading branch information
awownysz-splunk committed Dec 6, 2023
1 parent d088c44 commit d18dab1
Showing 1 changed file with 20 additions and 49 deletions.
69 changes: 20 additions & 49 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ jobs:
statuses: write
steps:
- name: Run title validation
# uses: ./.github/actions/validate-pr-title
uses: splunk/addonfactory-workflow-addon-release/.github/actions/validate-pr-title@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/validate-pr-title
with:
GITHUB_TOKEN: ${{ github.token }}

Expand Down Expand Up @@ -235,8 +234,7 @@ jobs:
steps:
- name: Run meta preparation
id: meta
# uses: ./.github/actions/meta
uses: splunk/addonfactory-workflow-addon-release/.github/actions/meta@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/meta
with:
SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }}
SA_GH_USER_EMAIL: ${{ secrets.SA_GH_USER_EMAIL }}
Expand All @@ -251,8 +249,7 @@ jobs:
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
steps:
- name: Run FOSSA scan
# uses: ./.github/actions/fossa-scan
uses: splunk/addonfactory-workflow-addon-release/.github/actions/fossa-scan@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/fossa-scan
with:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

Expand All @@ -264,8 +261,7 @@ jobs:
- fossa-scan
steps:
- name: Run FOSSA test
# uses: ./.github/actions/fossa-test
uses: splunk/addonfactory-workflow-addon-release/.github/actions/fossa-test@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/fossa-test
with:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}

Expand All @@ -277,8 +273,7 @@ jobs:
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
steps:
- name: Run compliance copyrights
# uses: ./.github/actions/compliance-copyrights
uses: splunk/addonfactory-workflow-addon-release/.github/actions/compliance-copyrights@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/compliance-copyrights

lint:
name: Lint
Expand All @@ -288,8 +283,7 @@ jobs:
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
steps:
- name: Run linting checks
# uses: ./.github/actions/lint
uses: splunk/addonfactory-workflow-addon-release/.github/actions/lint@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/lint

review-secrets:
name: Review secrets
Expand All @@ -299,8 +293,7 @@ jobs:
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
steps:
- name: Run secrets review
# uses: ./.github/actions/review-secrets
uses: splunk/addonfactory-workflow-addon-release/.github/actions/review-secrets@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/review-secrets

semgrep:
name: Semgrep security check
Expand All @@ -310,8 +303,7 @@ jobs:
if: ${{ needs.setup-workflow.outputs.skip-workflow != 'Yes' }}
steps:
- name: Run semgrep
# uses: ./.github/actions/semgrep
uses: splunk/addonfactory-workflow-addon-release/.github/actions/semgrep@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/semgrep
with:
SEMGREP_PUBLISH_TOKEN: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}

Expand All @@ -333,11 +325,10 @@ jobs:
steps:
- name: Run test inventory check
id: test-inventory
# uses: ./.github/actions/test-inventory
uses: splunk/addonfactory-workflow-addon-release/.github/actions/test-inventory@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/test-inventory

# Two separate unit test jobs needed as jobs that depend on unit-test success can't proceed
# if any matrix job fails. Currently python 3.9 always fails as it's not supported.
# if any matrix job fails. Currently python 3.9 may fail as it's not supported in all TAs.
# TODO: group these jobs into the matrix once python 3.9 is supported

run-unit-tests-3_7:
Expand All @@ -356,8 +347,7 @@ jobs:
steps:
- name: Run unit tests for python 3.7
id: unit-tests-3_7
# uses: ./.github/actions/unit-tests
uses: splunk/addonfactory-workflow-addon-release/.github/actions/unit-tests@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/unit-tests
with:
python_version: '3.7'

Expand All @@ -378,8 +368,7 @@ jobs:
steps:
- name: Run unit tests for python 3.9
id: unit-tests-3_9
# uses: ./.github/actions/unit-tests
uses: splunk/addonfactory-workflow-addon-release/.github/actions/unit-tests@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/unit-tests
with:
python_version: '3.9'

Expand All @@ -394,12 +383,6 @@ jobs:
- review-secrets
- semgrep
- run-unit-tests-3_7
# strategy:
# fail-fast: false
# matrix:
# python-version:
# - "3.7"
# - "3.9"
if: ${{ !cancelled() && (needs.run-unit-tests-3_7.result == 'success' || needs.run-unit-tests-3_7.result == 'skipped') }}
outputs:
buildname: ${{ steps.build.outputs.buildname }}
Expand All @@ -409,8 +392,7 @@ jobs:
steps:
- name: Run build 3.7
id: build
# uses: ./.github/actions/build
uses: splunk/addonfactory-workflow-addon-release/.github/actions/build@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/build
with:
python_version: "3.7"
SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }}
Expand All @@ -434,20 +416,13 @@ jobs:
- review-secrets
- semgrep
- run-unit-tests-3_7
# strategy:
# fail-fast: false
# matrix:
# python-version:
# - "3.7"
# - "3.9"
if: ${{ !cancelled() && (needs.run-unit-tests-3_7.result == 'success' || needs.run-unit-tests-3_7.result == 'skipped') }}
permissions:
contents: write
packages: read
steps:
- name: Run build 3.9
# uses: ./.github/actions/build
uses: splunk/addonfactory-workflow-addon-release/.github/actions/build@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/build
with:
python_version: "3.9"
SA_GH_USER_NAME: ${{ secrets.SA_GH_USER_NAME }}
Expand All @@ -461,13 +436,13 @@ jobs:
modinput_functional: ${{ needs.test-inventory.outputs.modinput_functional}}

virustotal:
continue-on-error: true
runs-on: ubuntu-latest
needs: build
if: ${{ !cancelled() && needs.build.result == 'success' }}
steps:
- name: Run VirusTotal check
# uses: ./.github/actions/virustotal
uses: splunk/addonfactory-workflow-addon-release/.github/actions/virustotal@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/virustotal
with:
VT_API_KEY: ${{ secrets.VT_API_KEY }}

Expand All @@ -487,8 +462,7 @@ jobs:
checks: write
steps:
- name: Run requirements unit tests
# uses: ./.github/actions/requirements-unit-tests
uses: splunk/addonfactory-workflow-addon-release/.github/actions/requirements-unit-tests@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/requirements-unit-tests

appinspect-cli:
name: AppInspect CLI ${{ matrix.tags }}
Expand All @@ -509,8 +483,7 @@ jobs:
- "manual"
steps:
- name: Run appinspect CLI
# uses: ./.github/actions/appinspect-cli
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-cli@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/appinspect-cli
with:
matrix_tags: ${{ matrix.tags }}

Expand All @@ -531,8 +504,7 @@ jobs:
- ""
steps:
- name: Run appinspect API
# uses: ./.github/actions/appinspect-api
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-api@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/appinspect-api
with:
matrix_tags: ${{ matrix.tags }}
SPL_COM_USER: ${{ secrets.SPL_COM_USER }}
Expand All @@ -550,8 +522,7 @@ jobs:
packages: write
steps:
- name: Run artifact registry
# uses: ./.github/actions/artifact-registry
uses: splunk/addonfactory-workflow-addon-release/.github/actions/artifact-registry@ci/lightweight-workflow-ADDON-66448
uses: ./.github/actions/artifact-registry
with:
sc4s: ${{ needs.meta.outputs.sc4s }}

Expand Down

0 comments on commit d18dab1

Please sign in to comment.