diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index c4cd9b2..7b1000b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -19,15 +19,15 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0 with: access_token: ${{ github.token }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Use Node.js ${{ env.NODE }} - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: ${{ env.NODE }} @@ -36,7 +36,7 @@ jobs: run: echo "::set-output name=dir::$(yarn cache dir)" working-directory: ${{ env.WORKING_DIRECTORY }} - - uses: actions/cache@v3 + - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -54,10 +54,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Use Node.js ${{ env.NODE }} - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: ${{ env.NODE }} @@ -66,7 +66,7 @@ jobs: run: echo "::set-output name=dir::$(yarn cache dir)" working-directory: ${{ env.WORKING_DIRECTORY }} - - uses: actions/cache@v3 + - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.yml index fc5434e..81d3851 100644 --- a/.github/workflows/deploy-web.yml +++ b/.github/workflows/deploy-web.yml @@ -18,15 +18,15 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0 with: access_token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Use Node.js ${{ env.NODE }} - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: ${{ env.NODE }} cache: "yarn" @@ -41,7 +41,7 @@ jobs: working-directory: ${{ env.WORKING_DIRECTORY }} - name: Configure AWS credentials using OIDC - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2 with: role-to-assume: arn:aws:iam::003081160852:role/osm-gradient-deploy-s3-role aws-region: us-east-1 diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index baafbce..79cbe6f 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 - name: Build docker image run: docker build -t gradient-pipeline ./pipeline @@ -50,12 +50,12 @@ jobs: run: ls -lh ./data/*.fgb - name: Authenticate with GCP - uses: google-github-actions/auth@v2 + uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2 with: credentials_json: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }} - name: Upload to GCS - uses: google-github-actions/upload-cloud-storage@v2 + uses: google-github-actions/upload-cloud-storage@c0f6160ff80057923ff50e5e567695cea181ec23 # v2 with: path: data destination: osm-tardis diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index ef6b218..b2cfa28 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -23,15 +23,15 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0 with: access_token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - name: Use Node.js ${{ env.NODE }} - uses: actions/setup-node@v3 + uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: ${{ env.NODE }} cache: "yarn" @@ -46,7 +46,7 @@ jobs: working-directory: ${{ env.WORKING_DIRECTORY }} - name: Configure AWS credentials using OIDC - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2 with: role-to-assume: arn:aws:iam::003081160852:role/osm-gradient-deploy-s3-role aws-region: us-east-1 @@ -100,7 +100,7 @@ jobs: - name: Check for existing preview comment id: check_comment - uses: actions/github-script@v6 + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -121,7 +121,7 @@ jobs: - name: Post comment with preview URL if: steps.check_comment.outputs.should_post_comment == 'true' - uses: actions/github-script@v6 + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 with: github-token: ${{secrets.GITHUB_TOKEN}} script: |