Skip to content

Merge pull request #284 from CrowdStrike/dependabot/github_actions/he… #110

Merge pull request #284 from CrowdStrike/dependabot/github_actions/he…

Merge pull request #284 from CrowdStrike/dependabot/github_actions/he… #110

name: Lint and Test Falcon Node Sensor
on:
push:
paths:
- 'helm-charts/falcon-sensor/**'
- '.github/workflows/helm-node-sensor.yaml'
pull_request_target:
types: [ labeled ]
paths:
- 'helm-charts/falcon-sensor/**'
- '.github/workflows/helm-node-sensor.yaml'
jobs:
node-sensor-test:
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' &&
github.event.label.name == 'ok-to-test')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
if: github.event_name != 'pull_request_target'
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
if: github.event_name == 'pull_request_target'
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.8.1
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: ct lint --config tests/ct.yaml
- name: Configure Node Sensor Chart values
run: |
rm -f helm-charts/falcon-sensor/ci/cid-values.yaml
cp tests/node-values.yaml helm-charts/falcon-sensor/ci/node-values.yaml
- name: Create kind cluster
uses: helm/[email protected]
- name: Run chart-testing (install) using Node sensor
run: ct install --config tests/ct.yaml --helm-extra-set-args "--set node.image.tag=${{ secrets.FALCON_NODE_TAG }} --set node.image.registryConfigJSON=${{ secrets.FALCON_REGISTRY_TOKEN }} --set falcon.cid=${{ secrets.FALCON_CID }}"