ci: pin GitHub Actions to commit SHAs

v2
cruizba 2026-03-25 17:52:57 +01:00
parent b5d4bf1c89
commit d5cc9c5f12
2 changed files with 15 additions and 15 deletions

View File

@ -59,7 +59,7 @@ jobs:
FIREFOX_VERSION: ${{ inputs.FIREFOX_VERSION || 'latest' }} FIREFOX_VERSION: ${{ inputs.FIREFOX_VERSION || 'latest' }}
EDGE_VERSION: ${{ inputs.EDGE_VERSION || 'latest' }} EDGE_VERSION: ${{ inputs.EDGE_VERSION || 'latest' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Setup scripts - name: Setup scripts
run: | run: |
curl -sOJ --output-dir /opt https://raw.githubusercontent.com/OpenVidu/openvidu/v2/ci-scripts/commons/build.sh curl -sOJ --output-dir /opt https://raw.githubusercontent.com/OpenVidu/openvidu/v2/ci-scripts/commons/build.sh
@ -100,12 +100,12 @@ jobs:
- name: OpenVidu E2E Tests Kurento - name: OpenVidu E2E Tests Kurento
run: /opt/openvidu-e2e-tests.sh --openvidu-e2e-tests-kurento run: /opt/openvidu-e2e-tests.sh --openvidu-e2e-tests-kurento
- name: Test reports - name: Test reports
uses: mikepenz/action-junit-report@v3 uses: mikepenz/action-junit-report@150e2f992e4fad1379da2056d1d1c279f520e058 # v3.8.0
if: always() # always run even if the previous step fails if: always() # always run even if the previous step fails
with: with:
report_paths: "**/target/surefire-reports/TEST-*.xml" report_paths: "**/target/surefire-reports/TEST-*.xml"
- name: Upload logs - name: Upload logs
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always() # always run even if the previous step fails if: always() # always run even if the previous step fails
with: with:
name: Logs name: Logs

View File

@ -24,10 +24,10 @@ jobs:
name: Test setup name: Test setup
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: with:
ref: ${{ inputs.commit_sha || github.sha }} ref: ${{ inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: with:
node-version: '20' node-version: '20'
- name: Commit URL - name: Commit URL
@ -51,7 +51,7 @@ jobs:
npm install npm install
npm run build && \ npm run build && \
npm pack npm pack
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with: with:
name: openvidu-browser name: openvidu-browser
path: openvidu-browser/openvidu-browser-*.tgz path: openvidu-browser/openvidu-browser-*.tgz
@ -62,13 +62,13 @@ jobs:
name: OpenVidu Angular E2E tests name: OpenVidu Angular E2E tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: with:
ref: ${{ inputs.commit_sha || github.sha }} ref: ${{ inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: with:
node-version: '20' node-version: '20'
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with: with:
name: openvidu-browser name: openvidu-browser
path: openvidu-components-angular path: openvidu-components-angular
@ -97,13 +97,13 @@ jobs:
name: Webcomponent E2E CE tests name: Webcomponent E2E CE tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with: with:
ref: ${{ inputs.commit_sha || github.sha }} ref: ${{ inputs.commit_sha || github.sha }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: with:
node-version: '20' node-version: '20'
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with: with:
name: openvidu-browser name: openvidu-browser
path: openvidu-components-angular path: openvidu-components-angular
@ -133,11 +133,11 @@ jobs:
name: Webcomponent E2E PRO tests name: Webcomponent E2E PRO tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-node@v4 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: with:
node-version: '20' node-version: '20'
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with: with:
name: openvidu-browser name: openvidu-browser
path: openvidu-components-angular path: openvidu-components-angular