Skip to content

Commit

Permalink
chore(ci): Add Github Action auditing
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Dec 14, 2024
1 parent 469c604 commit 4103184
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 106 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -100,6 +102,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -134,6 +137,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -165,6 +169,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand All @@ -183,6 +188,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand All @@ -201,6 +207,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -233,6 +240,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -271,6 +279,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -312,6 +321,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -360,6 +370,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -406,6 +417,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -449,6 +461,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -485,6 +498,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -525,6 +539,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand All @@ -43,6 +44,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -78,6 +80,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Login to GitHub Container Registry
Expand Down Expand Up @@ -119,6 +122,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Login to GitHub Container Registry
Expand Down Expand Up @@ -158,6 +162,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -204,6 +209,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Login to GitHub Container Registry
Expand Down Expand Up @@ -240,6 +246,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Run integration tests
Expand Down Expand Up @@ -275,6 +282,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Expose GitHub Runtime
Expand Down Expand Up @@ -311,6 +319,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main

- name: Expose GitHub Runtime
Expand Down Expand Up @@ -355,6 +364,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -406,6 +416,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main


Expand Down Expand Up @@ -514,6 +525,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main


Expand Down Expand Up @@ -560,6 +572,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
ref: main


Expand Down Expand Up @@ -598,6 +611,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down Expand Up @@ -641,6 +655,7 @@ jobs:

- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/flakehub-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/checkout@v4"
with:
persist-credentials: false
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/post-release.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true

Expand Down Expand Up @@ -61,6 +62,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true

Expand All @@ -83,6 +85,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true

Expand Down Expand Up @@ -122,6 +125,7 @@ jobs:
# Setup repo and add caching
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true

Expand Down
Loading

0 comments on commit 4103184

Please sign in to comment.