Skip to content
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
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- develop
- main

# default scope for all jobs, checkout only needs read
permissions:
contents: read

jobs:
validate-template-code:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -61,9 +65,14 @@ jobs:
echo "Validating template: $template"
sam validate --template-file "$template" --region us-east-2 --lint
done

security:
runs-on: ubuntu-latest

# security-events:write needed here, upload-sarif posts to the Security tab
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/trivy_schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
trivy:
name: Trivy security scan
runs-on: ubuntu-latest

# contents:read for checkout, security-events:write for upload-sarif to Security tab
permissions:
contents: read
security-events: write

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
Loading