Skip to content

Commit

Permalink
Merge pull request #158 from Nordix/openssf-recommendations
Browse files Browse the repository at this point in the history
Improve CI security
  • Loading branch information
bjosv committed Apr 8, 2024
2 parents ee508f0 + c38bf93 commit 3cc703c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Automated dependency updates.
#
# For configuration options see:
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: ci
on: [push, pull_request]

permissions:
contents: read

jobs:
autotools:
runs-on: ubuntu-latest
Expand All @@ -9,7 +12,7 @@ jobs:
run: |
sudo apt update -qq
sudo apt install -qq check lcov
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build
run: |
./autogen.sh
Expand All @@ -23,10 +26,11 @@ jobs:
run: lcov --capture -d '.' --exclude '/usr*' -o coverage.info
- name: Upload coverage
if: github.repository == 'c9s/r3'
uses: coverallsapp/github-action@1.1.3
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.info
file: coverage.info
format: lcov

cmake:
runs-on: ubuntu-latest
Expand All @@ -35,7 +39,7 @@ jobs:
run: |
sudo apt update -qq
sudo apt install -qq check ninja-build
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build and test
run: |
mkdir build && cd build
Expand All @@ -56,7 +60,7 @@ jobs:
run: |
sudo apt update -qq
sudo apt install -qq check
- uses: actions/checkout@v2
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build
env:
CC: ${{ matrix.compiler }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ on:
push:
branches: [2.0]

permissions:
contents: read

jobs:
analyze:
if: github.repository == 'c9s/r3'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Prepare
run: |
./autogen.sh
./configure --enable-check
- uses: vapier/coverity-scan-action@v1
- uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1.8.0
with:
project: r3
email: yoanlin93+github@gmail.com
Expand Down

0 comments on commit 3cc703c

Please sign in to comment.