Skip to content

Commit

Permalink
chore(release): revert workflow triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed Jul 12, 2024
1 parent 3681a82 commit 94c5f2c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 60 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/helm-chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: Release Helm Charts

on:
workflow_dispatch: # Trigger manually
workflow_call:
inputs:
ref-to-check-out:
description: 'Ref of branch/tag from which to execute workflow'
required: true
type: string
push:
branches:
- main
Expand All @@ -27,8 +21,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- name: Get helm charts latest tag version
id: step1
Expand All @@ -44,7 +36,7 @@ jobs:
echo "Exported $chartVersion helm charts version"
release:
needs: [get-helm-charts-versions-irs]
needs: "get-helm-charts-versions-irs"
if: needs.get-helm-charts-versions-irs.outputs.latest_version != needs.get-helm-charts-versions-irs.outputs.current_version
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
Expand All @@ -56,8 +48,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- name: Configure Git
run: |
Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/irs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ name: IRS build

on:
workflow_dispatch: # Trigger manually
workflow_call:
inputs:
ref-to-check-out:
description: 'Ref of branch/tag from which to execute workflow'
required: true
type: string

pull_request:
paths-ignore:
- '**/*.md'
Expand All @@ -33,9 +26,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down Expand Up @@ -76,9 +66,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonar analysis

- name: Set up JDK 17
uses: actions/setup-java@v4
Expand Down Expand Up @@ -120,9 +108,6 @@ jobs:
image-tag: ${{ steps.version.outputs.image_tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

# Needed to create multi-platform image
- name: Set up Docker Buildx
Expand Down Expand Up @@ -183,5 +168,3 @@ jobs:
needs:
- build_images
uses: ./.github/workflows/trivy-docker-hub-scan.yml
with:
ref-to-check-out: ${{ inputs.ref-to-check-out || github.ref }}
13 changes: 1 addition & 12 deletions .github/workflows/swagger-editor-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: "Validate OpenAPI definition"

on:
workflow_dispatch: # Trigger manually
workflow_call:
inputs:
ref-to-check-out:
description: 'Ref of branch/tag from which to execute workflow'
required: true
type: string
pull_request:
push:
branches:
Expand All @@ -21,12 +15,7 @@ jobs:
name: Swagger Editor Validator Remote

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- uses: actions/checkout@v4
- name: Validate OpenAPI definition
uses: char0n/swagger-editor-validate@v1
with:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/trivy-docker-hub-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ name: "Trivy vulnerability scanner for Docker Hub Image"
on:
workflow_dispatch: # Trigger manually
workflow_call: # Trigger by another workflow
inputs:
ref-to-check-out:
description: 'Ref of branch/tag from which to execute workflow'
required: true
type: string
schedule:
- cron: "0 0 * * *"

Expand All @@ -22,9 +17,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/trivy-image-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ name: "Trivy vulnerability scanner for image"

on:
workflow_dispatch: # Trigger manually
workflow_call:
inputs:
ref-to-check-out:
description: 'Ref of branch/tag from which to execute workflow'
required: true
type: string
pull_request:
paths-ignore:
- '**/*.md'
Expand Down Expand Up @@ -41,11 +35,8 @@ jobs:
- 5000:5000

steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: 'true'
ref: ${{ inputs.ref-to-check-out || github.ref }}

- name: Build image
uses: docker/build-push-action@v6
Expand Down
2 changes: 1 addition & 1 deletion docs/src/api/irs-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3043,4 +3043,4 @@ components:
description: Api Key access
in: header
name: X-API-KEY
type: apiKey
type: apiKey

0 comments on commit 94c5f2c

Please sign in to comment.