Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 11.4 #987

Merged
merged 4 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/actions/ubuntu16-build-action/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions .github/actions/ubuntu16-build-action/action.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/ubuntu16-build-action/build.sh

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/ubuntu18-build-action/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions .github/actions/ubuntu18-build-action/action.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/ubuntu18-build-action/build.sh

This file was deleted.

21 changes: 0 additions & 21 deletions .github/actions/ubuntu20-build-action/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions .github/actions/ubuntu20-build-action/action.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/actions/ubuntu20-build-action/build.sh

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Security scan
on:
push:
branches:
- main
- dev
pull_request:
schedule:
- cron: '0 0 * * 0' # Every Sunday at 12:00 AM

jobs:
trivy-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout newrelic-php-agent code
uses: actions/checkout@v4
with:
path: php-agent
- name: Run Trivy in table mode
# Table output is only useful when running on a pull request or push.
if: contains(fromJSON('["push", "pull_request"]'), github.event_name)
uses: aquasecurity/[email protected]
with:
scan-type: fs
scan-ref: ./php-agent
trivy-config: ./php-agent/trivy.yaml
trivyignores: ./php-agent/.trivyignore
format: table
exit-code: 1

- name: Run Trivy in report mode
# Only generate sarif when running nightly on the dev branch.
if: ${{ github.event_name == 'schedule' }}
uses: aquasecurity/[email protected]
with:
scan-type: fs
scan-ref: ./php-agent
trivy-config: ./php-agent/trivy.yaml
trivyignores: ./php-agent/.trivyignore
format: sarif
output: trivy-results.sarif

- name: Upload Trivy scan results to GitHub Security tab
# Only upload sarif when running nightly on the dev branch.
if: ${{ github.event_name == 'schedule' }}
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy-results.sarif
2 changes: 2 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore missing HEALTHCHECK in Dockerfile - devenv service from files/Dockerfile doesn't need it:
AVD-DS-0026
33 changes: 18 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,25 +475,28 @@ test-services-stop:
# Docker Development Environment
#

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

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

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

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

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

dev-all: devenv-image
docker compose --profile dev up --pull missing --remove-orphans -d
docker compose exec -it devenv bash -c "sh files/set_path.sh ; make -j4 all valgrind; ./bin/integration_runner -agent ./agent/.libs/newrelic.so"

dev-stop:
docker compose --profile dev stop
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.3.0
11.4.0
Loading
Loading