Skip to content

Commit

Permalink
Added workflow permissions to meet OpenSSF Scorecard requirements (#151)
Browse files Browse the repository at this point in the history
Added workflow permissions to meet OpenSSF Scorecard requirements.
Update github-ci.yml
  • Loading branch information
michaelbeale-IL authored Jul 18, 2024
1 parent 4be3996 commit f018f0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

name: Build and Test
permissions: read-all
on:
# By default this will run when the activity type is "opened", "synchronize",
# or "reopened".
Expand Down Expand Up @@ -55,6 +56,8 @@ jobs:
nix-build:
name: '${{ matrix.os }} ${{ matrix.build_type }} shared=${{ matrix.shared_lib }}'
runs-on: '${{ matrix.os }}'
permissions:
contents: write # required for actions/upload-artifacts@v2
defaults:
run:
shell: bash
Expand Down

0 comments on commit f018f0f

Please sign in to comment.