Skip to content

Commit

Permalink
trusted github account in summary (#90)
Browse files Browse the repository at this point in the history
* trusted github account in summary

* added support for composite actions

* fix audit rules

* fix audit rules

* fixed file tampering

* fixes in file tampering summary

* summary fix

* summary fix

* uniq pid check in build tampering

* version bump to v1.7.0-rc.8

* fix lint issues

* file tampering fix

* fix audit rules

* version bump v1.7.0-rc.11

* fix auditd rules for working directory watch

* make auditd mutatable for debugging

* added git directory exclusion logic

* dependency updates

* v1.7.0
  • Loading branch information
raianand authored Sep 9, 2024
1 parent 0a2946b commit d27f007
Show file tree
Hide file tree
Showing 14 changed files with 436 additions and 164 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ on:

permissions: read-all

env:
tag: ${{ github.ref_name }}

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
tag: ${{ github.ref_name }}
os: linux
arch: x86_64
outputs:
Expand Down Expand Up @@ -108,24 +110,22 @@ jobs:

provenance:
needs: [build]
if: ${{ !endsWith(github.ref_name, 'rc') && !contains(github.ref_name, 'rc.') }}
permissions:
actions: read
id-token: write
contents: write
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
# uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@5a775b367a56d5bd118a224a811bba288150a563 # slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
# Upload provenance to a new release
upload-assets: true

release:
needs: [build, provenance]
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
env:
tag: ${{ github.ref_name }}
os: linux
arch: x86_64
steps:
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
name: ${{ env.tag }}
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ endsWith(env.tag, 'rc') }}
prerelease: ${{ endsWith(env.tag, 'rc') || contains(env.tag, 'rc.') }}

- name: Verify Release
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ bin/

src/generated/

audit.json
audit*.json
5 changes: 0 additions & 5 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ describe('index', () => {
it('should return an array', async () => {
const { getTrustedGithubAccounts } = require('../src/input')

// jest.mock('@actions/core', () => ({
// warning: (...args) => console.log(...args, '\n'),
// error: (...args) => console.log(...args, '\n')
// }))

const accounts = getTrustedGithubAccounts()

expect(accounts).toBeInstanceOf(Array)
Expand Down
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d27f007

Please sign in to comment.