Skip to content

Commit ee496e1

Browse files
Merge pull request #28 from theseus-rs/update-action-permissions
chore: update action permissions to reduce write privilege scope
2 parents 51b48e1 + 36b7e4f commit ee496e1

File tree

7 files changed

+69
-50
lines changed

7 files changed

+69
-50
lines changed

.github/workflows/checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ env:
77
on:
88
workflow_call:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
audit:
1215
runs-on: ubuntu-22.04

.github/workflows/clear-caches.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- cron: '0 4 * * MON'
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
clear-caches:
1215
runs-on: ubuntu-latest

.github/workflows/pr-benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ name: Benchmarks
22

33
on:
44
pull_request:
5-
types: [opened, reopened, synchronize]
5+
types: [ opened, reopened, synchronize ]
66

77
permissions:
8-
pull-requests: write
8+
contents: read
99

1010
jobs:
1111
benchmark:
1212
name: Run Benchmarks
1313
runs-on: ubuntu-22.04
14+
permissions:
15+
pull-requests: write
1416
steps:
1517
- name: Checkout source code
1618
uses: actions/checkout@v4

.github/workflows/pr-labeler.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ name: Pull request labeler
22

33
on:
44
pull_request_target:
5-
types: [opened, edited]
5+
types: [ opened, edited ]
66

77
permissions:
88
contents: read
9-
pull-requests: write
109

1110
jobs:
1211
main:
12+
name: PR Labeler
1313
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: write
1416
steps:
1517
- name: Label pull request
1618
uses: release-drafter/release-drafter@v6

.github/workflows/release-drafter.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ on:
1212
type: string
1313

1414
permissions:
15-
contents: write
15+
contents: read
1616
pull-requests: read
1717

1818
jobs:
1919
main:
2020
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
2123
steps:
2224
- name: Draft release
2325
uses: release-drafter/release-drafter@v6

Cargo.lock

Lines changed: 42 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SECURITY.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Only support the latest version of this crate is supported.
6+
7+
## Reporting a Vulnerability
8+
9+
To report a security vulnerability, please use the form
10+
at https://github.com/theseus-rs/postgresql-embedded/security/advisories/new

0 commit comments

Comments
 (0)