Skip to content

Commit

Permalink
Fix lacework integration workflow (#18188)
Browse files Browse the repository at this point in the history
* fix paths

* fix trigger
  • Loading branch information
geropl authored Jul 6, 2023
1 parent 3e215bc commit 70ade77
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/lacework-inline-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: "Set outputs"
id: configuration
run: |
if [[ '${{ github.event.inputs.name }}' != '' ]]; then
if [[ '${{ github.event.workflow_run.run_number }}' == '' ]]; then
# The workflow was triggered by workflow_dispatch
{
echo "version=${{ github.event.inputs.version }}"
Expand All @@ -43,14 +43,13 @@ jobs:
runs-on: [self-hosted]
needs: [configuration]
if: ${{ needs.configuration.outputs.skip == 'false' }}
container:
image: eu.gcr.io/gitpod-core-dev/dev/dev-environment:cw-bump-leeway-075-gha.12686
steps:
# Most of this is taken over from the Build workflow/preview-env-check-regressions workflow
- uses: actions/checkout@v3
- name: Configure workspace
run: |
cp -r /__w/gitpod/gitpod /workspace
# Needed by google-github-actions/setup-gcloud
sudo chown -R gitpod:gitpod /__t
# Needed by docker/login-action
sudo chmod goa+rw /var/run/docker.sock
- id: auth
Expand All @@ -75,11 +74,10 @@ jobs:
- name: Lacework Inline Scanner
id: lacework-inline-scanner
shell: bash
working-directory: /workspace/gitpod
env:
VERSION: ${{needs.configuration.outputs.version}}
LW_ACCESS_TOKEN: '${{ steps.secrets.outputs.lacework-access-token }}'
# TODO(gpl) See docker.io access above
EXCLUDE_DOCKER_IO: true
run: |
./scripts/lw-scan-images.sh
$GITHUB_WORKSPACE/scripts/lw-scan-images.sh

0 comments on commit 70ade77

Please sign in to comment.