Skip to content

Commit

Permalink
Update GitHub Actions security (#28)
Browse files Browse the repository at this point in the history
* Pin GitHub Actions to SHA

* Add permissions to reusable workflows
  • Loading branch information
danbarr authored Jan 10, 2025
1 parent 1fc70c5 commit 66384d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/_security-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Security checks
on:
workflow_call:

permissions:
contents: read

jobs:
trivy:
name: Trivy scan
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_static-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Static checks
on:
workflow_call:

permissions:
contents: read

jobs:
lint:
name: Lint and format checks
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ jobs:
static-checks:
name: Static checks
uses: ./.github/workflows/_static-checks.yaml
secrets: inherit

0 comments on commit 66384d3

Please sign in to comment.