Skip to content

Commit

Permalink
Improve OSSF score (#848)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored Jan 4, 2024
1 parent 89f65f0 commit 18899d2
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI Build and Test

permissions:
contents: read

on:
pull_request:
push:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: golangci-lint

permissions:
contents: read

on: [push, pull_request]

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
permissions:
contents: read

on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'

jobs:
prune_stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
name: Prune Stale
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:1.21
FROM golang:1.21@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18652992930293312de898a6

COPY --from=envoyproxy/envoy-dev:latest /usr/local/bin/envoy /usr/local/bin/envoy
2 changes: 1 addition & 1 deletion examples/dyplomat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.21@sha256:672a2286da3ee7a854c3e0a56e0838918d0dbb1c18652992930293312de898a6

WORKDIR /go/src/dyplomat
COPY . /go/src/dyplomat
Expand Down

0 comments on commit 18899d2

Please sign in to comment.