Skip to content

Commit

Permalink
Add check-signed-commits-action
Browse files Browse the repository at this point in the history
Add the check-signed-commits-action that will leave a handy comment if a PR contains commits that are not signed.
  • Loading branch information
edif2008 committed May 28, 2024
1 parent fb837bf commit 57d9e33
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr-check-signed-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check signed commits in PR
on: pull_request_target

jobs:
build:
name: Check signed commits in PR
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check signed commits in PR
uses: 1Password/check-signed-commits-action@v1
38 changes: 38 additions & 0 deletions test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: app-example
spec:
selector:
matchLabels:
app: app-example
template:
metadata:
annotations:
operator.1password.io/inject: "app-example1"
labels:
app: app-example
spec:
containers:
- name: app-example1
image: debian
volumeMounts:
- name: redis
mountPath: /etc/redis
command: ["printenv"]
args: ["DB_USERNAME", "DB_PASSWORD"]
env:
- name: OP_CONNECT_HOST
value: http://onepassword-connect:8080
- name: OP_CONNECT_TOKEN
valueFrom:
secretKeyRef:
name: onepassword-token
key: token
- name: DB_USERNAME
value: your-secret-reference
- name: DB_PASSWORD
value: another-secret-reference
volumes:
- name: redis
emptyDir: {}

0 comments on commit 57d9e33

Please sign in to comment.