Skip to content

chore(deps): bump docker/login-action from 4.4.0 to 4.6.0 in the github-actions group #1389

chore(deps): bump docker/login-action from 4.4.0 to 4.6.0 in the github-actions group

chore(deps): bump docker/login-action from 4.4.0 to 4.6.0 in the github-actions group #1389

Workflow file for this run

name: Security scan
permissions: {}
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
permissions:
contents: read # checkout (harmless to be explicit)
security-events: write # upload-sarif → code scanning API
steps:
- name: Checkout newrelic-php-agent code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # 7.0.1
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/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
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/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
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@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # 4.37.3
with:
checkout_path: ./php-agent
sarif_file: trivy-results.sarif