Skip to content

Commit eab6b4b

Browse files
authored
Merge pull request #987 from newrelic/dev
Release 11.4
2 parents f30642f + 9997966 commit eab6b4b

22 files changed

+257
-456
lines changed

.github/actions/ubuntu16-build-action/Dockerfile

-21
This file was deleted.

.github/actions/ubuntu16-build-action/action.yml

-5
This file was deleted.

.github/actions/ubuntu16-build-action/build.sh

-4
This file was deleted.

.github/actions/ubuntu18-build-action/Dockerfile

-21
This file was deleted.

.github/actions/ubuntu18-build-action/action.yml

-5
This file was deleted.

.github/actions/ubuntu18-build-action/build.sh

-4
This file was deleted.

.github/actions/ubuntu20-build-action/Dockerfile

-21
This file was deleted.

.github/actions/ubuntu20-build-action/action.yml

-5
This file was deleted.

.github/actions/ubuntu20-build-action/build.sh

-4
This file was deleted.

.github/workflows/security-scan.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Security scan
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- dev
7+
pull_request:
8+
schedule:
9+
- cron: '0 0 * * 0' # Every Sunday at 12:00 AM
10+
11+
jobs:
12+
trivy-scan:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout newrelic-php-agent code
16+
uses: actions/checkout@v4
17+
with:
18+
path: php-agent
19+
- name: Run Trivy in table mode
20+
# Table output is only useful when running on a pull request or push.
21+
if: contains(fromJSON('["push", "pull_request"]'), github.event_name)
22+
uses: aquasecurity/[email protected]
23+
with:
24+
scan-type: fs
25+
scan-ref: ./php-agent
26+
trivy-config: ./php-agent/trivy.yaml
27+
trivyignores: ./php-agent/.trivyignore
28+
format: table
29+
exit-code: 1
30+
31+
- name: Run Trivy in report mode
32+
# Only generate sarif when running nightly on the dev branch.
33+
if: ${{ github.event_name == 'schedule' }}
34+
uses: aquasecurity/[email protected]
35+
with:
36+
scan-type: fs
37+
scan-ref: ./php-agent
38+
trivy-config: ./php-agent/trivy.yaml
39+
trivyignores: ./php-agent/.trivyignore
40+
format: sarif
41+
output: trivy-results.sarif
42+
43+
- name: Upload Trivy scan results to GitHub Security tab
44+
# Only upload sarif when running nightly on the dev branch.
45+
if: ${{ github.event_name == 'schedule' }}
46+
uses: github/codeql-action/upload-sarif@v3
47+
with:
48+
sarif_file: trivy-results.sarif

.trivyignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore missing HEALTHCHECK in Dockerfile - devenv service from files/Dockerfile doesn't need it:
2+
AVD-DS-0026

Makefile

+18-15
Original file line numberDiff line numberDiff line change
@@ -475,25 +475,28 @@ test-services-stop:
475475
# Docker Development Environment
476476
#
477477

478-
dev-shell:
479-
docker compose --profile dev up --build --remove-orphans -d
480-
docker exec -it agent-devenv bash -c "sh files/set_path.sh ; bash"
478+
devenv-image:
479+
@docker compose --profile dev build devenv
481480

482-
dev-build:
483-
docker compose --profile dev up --build --remove-orphans -d
484-
docker exec -it agent-devenv bash -c "sh files/set_path.sh ; make -j4 all"
481+
dev-shell: devenv-image
482+
docker compose --profile dev up --pull missing --remove-orphans -d
483+
docker compose exec -it devenv bash -c "sh files/set_path.sh ; bash"
485484

486-
dev-unit-tests:
487-
docker compose --profile dev up --build --remove-orphans -d
488-
docker exec -it agent-devenv bash -c "sh files/set_path.sh ; make -j4 valgrind"
485+
dev-build: devenv-image
486+
docker compose --profile dev up --pull missing --remove-orphans -d
487+
docker compose exec -it devenv bash -c "sh files/set_path.sh ; make -j4 all"
489488

490-
dev-integration-tests:
491-
docker compose --profile dev up --build --remove-orphans -d
492-
docker exec -it agent-devenv bash -c "sh files/set_path.sh ; ./bin/integration_runner -agent ./agent/.libs/newrelic.so"
489+
dev-unit-tests: devenv-image
490+
docker compose --profile dev up --pull missing --remove-orphans -d
491+
docker compose exec -it devenv bash -c "sh files/set_path.sh ; make -j4 valgrind"
493492

494-
dev-all:
495-
docker compose --profile dev up --build --remove-orphans -d
496-
docker exec -it agent-devenv bash -c "sh files/set_path.sh ; make -j4 all valgrind; ./bin/integration_runner -agent ./agent/.libs/newrelic.so"
493+
dev-integration-tests: devenv-image
494+
docker compose --profile dev up --pull missing --remove-orphans -d
495+
docker compose exec -it devenv bash -c "sh files/set_path.sh ; ./bin/integration_runner -agent ./agent/.libs/newrelic.so"
496+
497+
dev-all: devenv-image
498+
docker compose --profile dev up --pull missing --remove-orphans -d
499+
docker compose exec -it devenv bash -c "sh files/set_path.sh ; make -j4 all valgrind; ./bin/integration_runner -agent ./agent/.libs/newrelic.so"
497500

498501
dev-stop:
499502
docker compose --profile dev stop

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.3.0
1+
11.4.0

0 commit comments

Comments
 (0)