Skip to content

Commit

Permalink
do it
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaker Gilbert committed Jan 31, 2024
1 parent e53ad8c commit f03cd05
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 31 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-custom-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@ env:

jobs:

docker-linter:
uses: ocpdude/reusable/.github/workflows/linter.yaml@main
with:
language: hadolint
super-linter:
uses: .github/workflows/super-linter.yaml@main

security-checks:
permissions:
contents: read
security-events: write
actions: read
runs-on: ubuntu-latest
needs: [ docker-linter ]
needs: [ super-linter ]
steps:
- uses: actions/checkout@v4
- name: Build the test image
Expand All @@ -50,7 +48,7 @@ jobs:
sarif_file: ${{ steps.scan.outputs.sarif }}

build-deployment:
needs: [ security-checks, docker-linter ]
needs: [ security-checks, super-linter ]
runs-on: ubuntu-latest
steps:
- name: Get the date
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/podman-custom-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ on:
- main
paths:
- 'openshift/builds/podman/Dockerfile'

pull_request:
branches:
- 'main'
paths:
- 'openshift/builds/podman/Dockerfile'
branches:
- 'main'
paths:
- 'openshift/builds/podman/Dockerfile'

workflow_dispatch:

Expand All @@ -20,18 +19,12 @@ env:

jobs:

docker-linter:
uses: ocpdude/reusable/.github/workflows/linter.yaml@main
with:
language: hadolint

security-checks:
permissions:
contents: read
security-events: write
actions: read
runs-on: ubuntu-latest
needs: [ docker-linter ]
steps:
- uses: actions/checkout@v4
- name: Build the test image
Expand All @@ -50,7 +43,7 @@ jobs:
sarif_file: ${{ steps.scan.outputs.sarif }}

build-deployment:
needs: [ security-checks, docker-linter ]
needs: [ security-checks ]
runs-on: ubuntu-latest
steps:
- name: Get the date
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/super-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: Code Linter

on:
# push:
# branches:
# - main
pull_request:
branches:
- 'main'
paths:
- 'openshift/manifests/org-ocpdude/**.yaml'
- 'openshift/manifests/org-vault-tec/**.yaml'
- 'openshift/manifests/rbac-example/**.yaml'
- 'openshift/builds/podman/Dockerfile'
- 'openshift/builds/docker/Dockerfile'

workflow_call:
workflow_dispatch:
pull_request:
branches:
- 'main'
paths:
- 'openshift/manifests/org-ocpdude/**.yaml'
- 'openshift/manifests/org-vault-tec/**.yaml'
- 'openshift/manifests/rbac-example/**.yaml'
- 'openshift/builds/podman/Dockerfile'
- 'openshift/builds/docker/Dockerfile'


jobs:
build:
Expand Down

0 comments on commit f03cd05

Please sign in to comment.