From 4c1d3ffc15097c155a2c789152b7ef877c74d435 Mon Sep 17 00:00:00 2001 From: Miguel Nieto A <39246879+miguelnietoa@users.noreply.github.com> Date: Tue, 27 Dec 2022 09:13:24 -0500 Subject: [PATCH] Add default permissions as read-only (#75) * Add default permissions as read-only Setting this will increase the openssf score. * Fix build badge --- .github/workflows/ci.yml | 3 +++ README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fa7aae..144d25e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: - 'v*.[0-9]' pull_request: +permissions: + contents: read + jobs: tests: name: Run tests diff --git a/README.md b/README.md index 27c2866..2be8d31 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Elixir XDR -![Build Badge](https://img.shields.io/github/actions/workflow/status/kommitters/elixir_xdr/CI.yml?branch=main&style=for-the-badge) +![Build Badge](https://img.shields.io/github/actions/workflow/status/kommitters/elixir_xdr/ci.yml?branch=main&style=for-the-badge) [![Coverage Status](https://img.shields.io/coveralls/github/kommitters/elixir_xdr?style=for-the-badge)](https://coveralls.io/github/kommitters/elixir_xdr) [![Version Badge](https://img.shields.io/hexpm/v/elixir_xdr?style=for-the-badge)](https://hexdocs.pm/elixir_xdr) ![Downloads Badge](https://img.shields.io/hexpm/dt/elixir_xdr?style=for-the-badge)