Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trusted github account in summary #90

Merged
merged 19 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading