Skip to content

Commit

Permalink
Harden sync and tag workflows (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns authored Jun 8, 2024
1 parent 68421c3 commit f677814
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sync-default-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ jobs:
permissions: {contents: write}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with: {egress-policy: audit}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- run: git push --force origin HEAD:refs/heads/master
2 changes: 2 additions & 0 deletions .github/workflows/tag-major.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ jobs:
permissions: {contents: write}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with: {egress-policy: audit}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- run: git push -f origin "HEAD:refs/heads/${GITHUB_REF_NAME%%.*}"
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
runs-on: ${{ matrix.os }}-latest
strategy: {matrix: {os: [ubuntu, macOS]}}
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with: {egress-policy: audit}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- run: npm cit

Expand All @@ -28,6 +30,8 @@ jobs:
permissions: {contents: read, packages: read, statuses: write}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with: {egress-policy: audit}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with: {fetch-depth: 0}
- uses: super-linter/super-linter/slim@5b638caee6ba65e25e07143887b669a1233847a0 # v6.5.1
Expand All @@ -49,6 +53,8 @@ jobs:
permissions: {id-token: write, security-events: write}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with: {egress-policy: audit}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
with:
Expand Down

0 comments on commit f677814

Please sign in to comment.